diff MoinMoin/items/__init__.py @ 1957:3e7fc8bab8b1 namespaces

add some dummy methods for NonExistent item - calling base class methods would cause crashes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 09 Feb 2013 17:03:57 +0100
parents c3624283c9ec
children 5d672f909f27
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Sat Feb 09 04:45:41 2013 +0100
+++ b/MoinMoin/items/__init__.py	Sat Feb 09 17:03:57 2013 +0100
@@ -748,6 +748,22 @@
                                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__)