diff -r ada2f065f279 -r 80783605d270 entity.py --- a/entity.py Mon Apr 08 17:33:49 2013 +0200 +++ b/entity.py Mon Apr 22 14:54:22 2013 +0200 @@ -554,7 +554,10 @@ return '' % ( self.e_schema, self.eid, list(self.cw_attr_cache), id(self)) - def __cmp__(self, other): + def __lt__(self, other): + raise NotImplementedError('comparison not implemented for %s' % self.__class__) + + def __eq__(self, other): raise NotImplementedError('comparison not implemented for %s' % self.__class__) def _cw_update_attr_cache(self, attrcache):