equal
deleted
inserted
replaced
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 |