diff options
author | Chris Ball <cjb@laptop.org> | 2009-06-25 09:53:39 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2009-06-25 09:53:39 -0400 |
commit | ae52bd5946df9c0d59be43824b20d33819891f93 (patch) | |
tree | c4579ec93a80f5e93b4258e8771ae39405ce9ba7 /libbe/comment.py | |
parent | 1f746ca3f2f2745bfeae998186b4a427776359a2 (diff) | |
parent | eeaf13d7d9c5e6fcad4689c988d4fc1806426d3f (diff) | |
download | bugseverywhere-ae52bd5946df9c0d59be43824b20d33819891f93.tar.gz |
Merge with W. Trevor King's tree.
Diffstat (limited to 'libbe/comment.py')
-rw-r--r-- | libbe/comment.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbe/comment.py b/libbe/comment.py index 80b97a1..df5a63f 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -151,10 +151,10 @@ class Comment(Tree, settings_object.SavedSettingsObject): if self.rcs != None and self.sync_with_disk == True: import rcs return self.rcs.get_file_contents(self.get_path("body")) - def _set_comment_body(self, value, force=False): + def _set_comment_body(self, old=None, new=None, force=False): if (self.rcs != None and self.sync_with_disk == True) or force==True: - assert value != None, "Can't save empty comment" - self.rcs.set_file_contents(self.get_path("body"), value) + assert new != None, "Can't save empty comment" + self.rcs.set_file_contents(self.get_path("body"), new) @Property @change_hook_property(hook=_set_comment_body) @@ -323,7 +323,7 @@ class Comment(Tree, settings_object.SavedSettingsObject): # raise Exception, str(self)+'\n'+str(self.settings)+'\n'+str(self._settings_loaded) #assert self.in_reply_to != None, "Comment must be a reply to something" self.save_settings() - self._set_comment_body(self.body, force=True) + self._set_comment_body(new=self.body, force=True) def remove(self): for comment in self.traverse(): |