aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/comment.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-21 13:32:24 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-21 13:32:24 -0400
commiteee872e51ef0b44a526dc981ef78e48a93ad8116 (patch)
tree4e4567dfce5dc9a3a6c3abc5310df4b43af31cb3 /becommands/comment.py
parentec21c8cae10abf14dd429eee484af8dd0b1c4c24 (diff)
downloadbugseverywhere-eee872e51ef0b44a526dc981ef78e48a93ad8116.tar.gz
"be comment --xml" now saves the comments (again).
They are generated in memory (from_disk defaults to False) 133: new = comment.Comment(bug) With the leaner saving since I started trusting sync_with_disk, they were no longer making it to disk. Easily fixed with an explicit save once you've got them all set up.
Diffstat (limited to 'becommands/comment.py')
-rw-r--r--becommands/comment.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/becommands/comment.py b/becommands/comment.py
index eba640e..5392286 100644
--- a/becommands/comment.py
+++ b/becommands/comment.py
@@ -153,6 +153,7 @@ def execute(args, test=False):
kids = [c.uuid for c in parent.traverse()]
for nc in new_comments:
assert nc.uuid in kids, "%s wasn't added to %s" % (nc.uuid, parent.uuid)
+ nc.save()
def get_parser():
parser = cmdutil.CmdOptionParser("be comment ID [COMMENT]")