|
|
@@ -58,6 +58,12 @@ class Object(object): |
|
|
|
if kwargs.has_key('content'): |
|
|
|
self._content = kwargs['content'] |
|
|
|
|
|
|
|
def __repr__(self): |
|
|
|
cls = self.__class__ |
|
|
|
return '<%s.%s: id: %s, parent: %s, title: %s>' % \ |
|
|
|
(cls.__module__, cls.__name__, self.id, self.parentID, |
|
|
|
self.title) |
|
|
|
|
|
|
|
def checkUpdate(self): |
|
|
|
return self |
|
|
|
|
|
|
@@ -258,6 +264,12 @@ class Container(Object, list): |
|
|
|
|
|
|
|
return root |
|
|
|
|
|
|
|
def __repr__(self): |
|
|
|
cls = self.__class__ |
|
|
|
return '<%s.%s: id: %s, parent: %s, title: %s, cnt: %d>' % \ |
|
|
|
(cls.__module__, cls.__name__, self.id, self.parentID, |
|
|
|
self.title, len(self)) |
|
|
|
|
|
|
|
class Person(Container): |
|
|
|
klass = Container.klass + '.person' |
|
|
|
|
|
|
|