entity.py
changeset 8892 80783605d270
parent 8793 3305b4a9df49
child 8907 ddeb02b02222
equal deleted inserted replaced
8891:ada2f065f279 8892:80783605d270
   552 
   552 
   553     def __repr__(self):
   553     def __repr__(self):
   554         return '<Entity %s %s %s at %s>' % (
   554         return '<Entity %s %s %s at %s>' % (
   555             self.e_schema, self.eid, list(self.cw_attr_cache), id(self))
   555             self.e_schema, self.eid, list(self.cw_attr_cache), id(self))
   556 
   556 
   557     def __cmp__(self, other):
   557     def __lt__(self, other):
       
   558         raise NotImplementedError('comparison not implemented for %s' % self.__class__)
       
   559 
       
   560     def __eq__(self, other):
   558         raise NotImplementedError('comparison not implemented for %s' % self.__class__)
   561         raise NotImplementedError('comparison not implemented for %s' % self.__class__)
   559 
   562 
   560     def _cw_update_attr_cache(self, attrcache):
   563     def _cw_update_attr_cache(self, attrcache):
   561         # if context is a repository session, don't consider dont-cache-attrs as
   564         # if context is a repository session, don't consider dont-cache-attrs as
   562         # the instance already hold modified values and loosing them could
   565         # the instance already hold modified values and loosing them could