|
|
@@ -106,27 +106,10 @@ class Object(object): |
|
|
|
if kwargs.has_key('content'): |
|
|
|
self._content = kwargs['content'] |
|
|
|
|
|
|
|
def __lt__(self, other): |
|
|
|
return self.__cmp__(other) < 0 |
|
|
|
|
|
|
|
def __le__(self, other): |
|
|
|
return self.__cmp__(other) <= 0 |
|
|
|
|
|
|
|
def __eq__(self, other): |
|
|
|
return self.__cmp__(other) == 0 |
|
|
|
|
|
|
|
def __ne__(self, other): |
|
|
|
return self.__cmp__(other) != 0 |
|
|
|
|
|
|
|
def __gt__(self, other): |
|
|
|
return self.__cmp__(other) > 0 |
|
|
|
|
|
|
|
def __ge__(self, other): |
|
|
|
return self.__cmp__(other) >= 0 |
|
|
|
|
|
|
|
def __cmp__(self, other): |
|
|
|
if not isinstance(other, self.__class__): |
|
|
|
return 1 |
|
|
|
return cmp(self.__class__.__name__, |
|
|
|
other.__class__.__name__) |
|
|
|
return cmp(self.id, other.id) |
|
|
|
|
|
|
|
def __repr__(self): |
|
|
|