From: W. Trevor King Date: Tue, 21 Jul 2009 17:32:24 +0000 (-0400) Subject: "be comment --xml" now saves the comments (again). X-Git-Tag: 1.0.0~63^2~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eee872e51ef0b44a526dc981ef78e48a93ad8116;p=be.git "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. --- 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]")