diff options
Diffstat (limited to 'libbe/comment.py')
-rw-r--r-- | libbe/comment.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/libbe/comment.py b/libbe/comment.py index b2fc556..bcb8045 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 @@ -560,9 +560,6 @@ class Comment(Tree, settings_object.SavedSettingsObject): if self.sync_with_disk == False: raise DiskAccessRequired("load settings") self.settings = mapfile.map_load(self.rcs, self.get_path("values")) - # hack to deal with old BE comments: - if "From" in self.settings: - self.settings["Author"] = self.settings.pop("From") self._setup_saved_settings() def save_settings(self): |