comparison 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
comparison
equal deleted inserted replaced
1956:8c0b20b0b78d 1957:3e7fc8bab8b1
746 return render_template('modify_select_itemtype.html', 746 return render_template('modify_select_itemtype.html',
747 item_name=self.name, 747 item_name=self.name,
748 itemtypes=item_registry.shown_entries, 748 itemtypes=item_registry.shown_entries,
749 ) 749 )
750 750
751 def rename(self, name, comment=u''):
752 # pointless for non-existing items
753 pass
754
755 def delete(self, comment=u''):
756 # pointless for non-existing items
757 pass
758
759 def revert(self, comment=u''):
760 # pointless for non-existing items
761 pass
762
763 def destroy(self, comment=u'', destroy_item=False):
764 # pointless for non-existing items
765 pass
766
751 767
752 from ..util.pysupport import load_package_modules 768 from ..util.pysupport import load_package_modules
753 load_package_modules(__name__, __path__) 769 load_package_modules(__name__, __path__)