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:
parent
32a6449ce0
commit
1ba27977ea
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue