entity.py
changeset 3072 6fb42c53f6df
parent 3023 7864fee8b4ec
parent 3050 f4c1994a749d
child 3163 edfe43ceaa35
equal deleted inserted replaced
3035:2e4a381ea5b7 3072:6fb42c53f6df
   207         return True
   207         return True
   208 
   208 
   209     def __hash__(self):
   209     def __hash__(self):
   210         return id(self)
   210         return id(self)
   211 
   211 
   212     def __cmp__(self):
   212     def __cmp__(self, other):
   213         raise NotImplementedError('comparison not implemented for %s' % self.__class__)
   213         raise NotImplementedError('comparison not implemented for %s' % self.__class__)
   214 
   214 
   215     def pre_add_hook(self):
   215     def pre_add_hook(self):
   216         """hook called by the repository before doing anything to add the entity
   216         """hook called by the repository before doing anything to add the entity
   217         (before_add entity hooks have not been called yet). This give the
   217         (before_add entity hooks have not been called yet). This give the