entity.py
branch3.5
changeset 3002 a9d7eaa07475
parent 2942 77ebdbe93cf8
parent 3000 4e76477949d5
child 3023 7864fee8b4ec
child 3050 f4c1994a749d
--- a/entity.py	Tue Aug 25 18:47:25 2009 +0200
+++ b/entity.py	Wed Aug 26 00:02:57 2009 +0200
@@ -315,6 +315,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