entity.py
branchstable
changeset 3047 ba86b1bdbcab
parent 3000 4e76477949d5
child 3050 f4c1994a749d
child 3130 2486163c4630
equal deleted inserted replaced
3045:82e0b12054a8 3047:ba86b1bdbcab
   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