Browse Source

move the repr from zip to FSStorage where it belongs, it will now

cover all FSObject's and include the path...

[git-p4: depot-paths = "//depot/": change = 828]
v0.3
John-Mark Gurney 18 years ago
parent
commit
3daff0a894
2 changed files with 4 additions and 3 deletions
  1. +4
    -0
      FSStorage.py
  2. +0
    -3
      ZipStorage.py

+ 4
- 0
FSStorage.py View File

@@ -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'])


+ 0
- 3
ZipStorage.py View File

@@ -286,9 +286,6 @@ class ZipObject(FSObject, StorageFolder):
if doupdate:
StorageFolder.doUpdate(self)

def __repr__(self):
return '<ZipObject: path: %s>' % self.FSpath

def detectzipfile(path, fobj):
try:
genZipFile(path)


Loading…
Cancel
Save