entity.py
changeset 8696 0bb18407c053
parent 8661 4d24ac49f90d
child 8697 574bb05e40a4
equal deleted inserted replaced
8695:358d8bed9626 8696:0bb18407c053
   551         self._cw_is_saved = True
   551         self._cw_is_saved = True
   552         self.cw_attr_cache = {}
   552         self.cw_attr_cache = {}
   553 
   553 
   554     def __repr__(self):
   554     def __repr__(self):
   555         return '<Entity %s %s %s at %s>' % (
   555         return '<Entity %s %s %s at %s>' % (
   556             self.e_schema, self.eid, self.cw_attr_cache.keys(), id(self))
   556             self.e_schema, self.eid, list(self.cw_attr_cache), id(self))
   557 
   557 
   558     def __cmp__(self, other):
   558     def __cmp__(self, other):
   559         raise NotImplementedError('comparison not implemented for %s' % self.__class__)
   559         raise NotImplementedError('comparison not implemented for %s' % self.__class__)
   560 
   560 
   561     def _cw_update_attr_cache(self, attrcache):
   561     def _cw_update_attr_cache(self, attrcache):