aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/comment.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-06-25 09:11:32 -0400
committerW. Trevor King <wking@drexel.edu>2009-06-25 09:11:32 -0400
commiteeaf13d7d9c5e6fcad4689c988d4fc1806426d3f (patch)
treec4579ec93a80f5e93b4258e8771ae39405ce9ba7 /libbe/comment.py
parentd2e349295ecd2f4c3e41f4f5925eb746873e8103 (diff)
parentea62dd57fa0ea41a164c02129cb0e70a3298bc9f (diff)
downloadbugseverywhere-eeaf13d7d9c5e6fcad4689c988d4fc1806426d3f.tar.gz
Merged extra-strings branch, adding be tag/depend.
Diffstat (limited to 'libbe/comment.py')
-rw-r--r--libbe/comment.py8
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():