diff MoinMoin/items/__init__.py @ 910:5b7e522d97af storage-ng

fix destroy
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 30 Sep 2011 18:38:43 +0200
parents a31e0d2f542d
children 326f7a365007
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Fri Sep 30 18:20:33 2011 +0200
+++ b/MoinMoin/items/__init__.py	Fri Sep 30 18:38:43 2011 +0200
@@ -414,10 +414,10 @@
         # called from destroy UI/POST
         if destroy_item:
             # destroy complete item with all revisions, metadata, etc.
-            self.rev.item.destroy()
+            self.rev.item.destroy_all_revisions()
         else:
             # just destroy this revision
-            self.rev.destroy()
+            self.rev.item.destroy_revision(self.rev.revid)
 
     def modify(self):
         # called from modify UI/POST