aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/comment.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/comment.py')
-rw-r--r--libbe/comment.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbe/comment.py b/libbe/comment.py
index f1b979e..accd4df 100644
--- a/libbe/comment.py
+++ b/libbe/comment.py
@@ -93,7 +93,7 @@ def save_comments(bug):
comment.save()
-class Comment(Tree, settings_object.SavedSettingsObject):
+class Comment (Tree, settings_object.SavedSettingsObject):
"""
>>> c = Comment()
>>> c.uuid != None
@@ -587,11 +587,11 @@ class Comment(Tree, settings_object.SavedSettingsObject):
settings_mapfile = \
self.storage.get(self.id.storage("values"), default="\n")
try:
- self.settings = mapfile.parse(settings_mapfile)
+ settings = mapfile.parse(settings_mapfile)
except mapfile.InvalidMapfileContents, e:
raise Exception('Invalid settings file for comment %s\n'
'(BE version missmatch?)' % self.id.user())
- self._setup_saved_settings()
+ self._setup_saved_settings(settings)
def save_settings(self):
mf = mapfile.generate(self._get_saved_settings())