From baa45573a54bf8f7fdcd7fc53d13f9f160954da7 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 31 Aug 2009 11:50:28 -0400 Subject: Made get_path() definitions consistent between bugdirs, bugs, and comments. --- libbe/comment.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libbe/comment.py') diff --git a/libbe/comment.py b/libbe/comment.py index b2fc556..4e55c90 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -546,12 +546,12 @@ class Comment(Tree, settings_object.SavedSettingsObject): # methods for saving/loading/acessing settings and properties. - def get_path(self, name=None): - my_dir = os.path.join(self.bug.get_path("comments"), self.uuid) - if name is None: - return my_dir - assert name in ["values", "body"] - return os.path.join(my_dir, name) + def get_path(self, *args): + dir = os.path.join(self.bug.get_path("comments"), self.uuid) + if len(args) == 0: + return dir + assert args[0] in ["values", "body"], str(args) + return os.path.join(dir, *args) def set_sync_with_disk(self, value): self.sync_with_disk = value -- cgit