entity.py
changeset 3023 7864fee8b4ec
parent 2968 0e3460341023
parent 3002 a9d7eaa07475
child 3072 6fb42c53f6df
--- a/entity.py	Fri Aug 21 16:26:20 2009 +0200
+++ b/entity.py	Wed Aug 26 14:45:56 2009 +0200
@@ -209,6 +209,9 @@
     def __hash__(self):
         return id(self)
 
+    def __cmp__(self):
+        raise NotImplementedError('comparison not implemented for %s' % self.__class__)
+
     def pre_add_hook(self):
         """hook called by the repository before doing anything to add the entity
         (before_add entity hooks have not been called yet). This give the