skip non-office files

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4113 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2010-12-23 07:38:48 +00:00
parent 32a6449ce0
commit 1ba27977ea

View file

@ -79,6 +79,9 @@ class OfficeFile(ExternalFileAdapter):
@Lazy
def docPropertyDom(self):
fn = self.docFilename
root, ext = os.path.splitext(fn)
if not ext.lower() in self.fileExtensions:
return []
try:
zf = ZipFile(fn, 'r')
except IOError, e: