entity.py
branchstable
changeset 3000 4e76477949d5
parent 2928 edfdb69df6e8
child 3002 a9d7eaa07475
child 3047 ba86b1bdbcab
--- a/entity.py	Tue Aug 25 23:29:05 2009 +0200
+++ b/entity.py	Tue Aug 25 23:34:30 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