entity.py
branch3.5
changeset 3050 f4c1994a749d
parent 3002 a9d7eaa07475
parent 3047 ba86b1bdbcab
child 3072 6fb42c53f6df
child 3136 ed303cf3a048
child 3165 0a50ebe53db7
equal deleted inserted replaced
3046:610a11c683e5 3050:f4c1994a749d
   313         return True
   313         return True
   314 
   314 
   315     def __hash__(self):
   315     def __hash__(self):
   316         return id(self)
   316         return id(self)
   317 
   317 
   318     def __cmp__(self):
   318     def __cmp__(self, other):
   319         raise NotImplementedError('comparison not implemented for %s' % self.__class__)
   319         raise NotImplementedError('comparison not implemented for %s' % self.__class__)
   320 
   320 
   321     def pre_add_hook(self):
   321     def pre_add_hook(self):
   322         """hook called by the repository before doing anything to add the entity
   322         """hook called by the repository before doing anything to add the entity
   323         (before_add entity hooks have not been called yet). This give the
   323         (before_add entity hooks have not been called yet). This give the