|
|
@@ -83,9 +83,11 @@ class FSObject(object): |
|
|
|
def doUpdate(self): |
|
|
|
raise NotImplementedError |
|
|
|
|
|
|
|
|
|
|
|
def __repr__(self): |
|
|
|
return '<%s.%s: path: %s>' % (self.__class__.__module__, |
|
|
|
self.__class__.__name__, self.FSpath) |
|
|
|
return '<%s.%s: path: %s, id: %s, parent: %s, title: %s>' % \ |
|
|
|
(self.__class__.__module__, self.__class__.__name__, |
|
|
|
self.FSpath, self.id, self.parentID, self.title) |
|
|
|
|
|
|
|
class NullConsumer(file, abstract.FileDescriptor): |
|
|
|
implements(interfaces.IConsumer) |
|
|
@@ -287,3 +289,9 @@ class FSDirectory(FSObject, StorageFolder): |
|
|
|
# Pass up to handle UpdateID |
|
|
|
if doupdate: |
|
|
|
StorageFolder.doUpdate(self) |
|
|
|
|
|
|
|
def __repr__(self): |
|
|
|
return ('<%s.%s: path: %s, id: %s, parent: %s, title: %s, ' + \ |
|
|
|
'cnt: %d>') % (self.__class__.__module__, |
|
|
|
self.__class__.__name__, self.FSpath, self.id, |
|
|
|
self.parentID, self.title, len(self)) |