1. Thomas Waldmann
  2. moin-2.0

Commits

Thomas Waldmann  committed 3e7fc8b

add some dummy methods for NonExistent item - calling base class methods would cause crashes

  • Participants
  • Parent commits 8c0b20b
  • Branches namespaces

Comments (0)

Files changed (1)

File MoinMoin/items/__init__.py

View file
                                itemtypes=item_registry.shown_entries,
                               )
 
+    def rename(self, name, comment=u''):
+        # pointless for non-existing items
+        pass
+
+    def delete(self, comment=u''):
+        # pointless for non-existing items
+        pass
+
+    def revert(self, comment=u''):
+        # pointless for non-existing items
+        pass
+
+    def destroy(self, comment=u'', destroy_item=False):
+        # pointless for non-existing items
+        pass
+
 
 from ..util.pysupport import load_package_modules
 load_package_modules(__name__, __path__)