|
|
@@ -152,7 +152,6 @@ class ZipItem(Item): |
|
|
|
return self.zo.checkUpdate() |
|
|
|
|
|
|
|
def doUpdate(self): |
|
|
|
log.msg('doUpdate:', `self`, self.name) |
|
|
|
self.res = Resource(self.url, 'http-get:*:%s:*' % self.mimetype) |
|
|
|
self.res.size = self.zi.file_size |
|
|
|
Item.doUpdate(self) |
|
|
@@ -202,10 +201,12 @@ class ZipObject(FSObject, StorageFolder): |
|
|
|
klass, i, zf = self.zip, zo = self, |
|
|
|
name = i, mimetype = mt) |
|
|
|
|
|
|
|
# sort our children |
|
|
|
self.sort(lambda x, y: cmp(x.title, y.title)) |
|
|
|
|
|
|
|
def detectzipfile(path, fobj): |
|
|
|
try: |
|
|
|
z = zipfile.ZipFile(fobj) |
|
|
|
log.msg(`z`) |
|
|
|
except: |
|
|
|
return None, None |
|
|
|
|
|
|
|