Comment.remove() now ignores .sync_with_disk when removing the root comment.
authorW. Trevor King <wking@drexel.edu>
Mon, 27 Jul 2009 11:56:17 +0000 (07:56 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 27 Jul 2009 11:56:17 +0000 (07:56 -0400)
libbe/comment.py

index bf149209305ca0714c0462cc3eae7db9d78152b8..1e2ef1a8cb237339c968bd938c5580039e233433 100644 (file)
@@ -591,7 +591,7 @@ class Comment(Tree, settings_object.SavedSettingsObject):
             self.set_sync_with_disk(False)
 
     def remove(self):
-        if self.sync_with_disk == False:
+        if self.sync_with_disk == False and self.uuid != INVALID_UUID:
             raise DiskAccessRequired("remove")
         for comment in self.traverse():
             path = comment.get_path()