diff --git a/FSStorage.py b/FSStorage.py index 8f28de8..eaa838a 100644 --- a/FSStorage.py +++ b/FSStorage.py @@ -65,6 +65,10 @@ class FSObject(object): def doUpdate(self): raise NotImplementedError + def __repr__(self): + return '<%s.%s: path: %s>' % (self.__class__.__module__, + self.__class__.__name__, self.FSpath) + class FSItem(FSObject, Item): def __init__(self, *args, **kwargs): FSObject.__init__(self, kwargs['path']) diff --git a/ZipStorage.py b/ZipStorage.py index 536b897..804ab25 100644 --- a/ZipStorage.py +++ b/ZipStorage.py @@ -286,9 +286,6 @@ class ZipObject(FSObject, StorageFolder): if doupdate: StorageFolder.doUpdate(self) - def __repr__(self): - return '' % self.FSpath - def detectzipfile(path, fobj): try: genZipFile(path)