From eee872e51ef0b44a526dc981ef78e48a93ad8116 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 21 Jul 2009 13:32:24 -0400 Subject: "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. --- becommands/comment.py | 1 + 1 file changed, 1 insertion(+) (limited to 'becommands') 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]") -- cgit