From 1ba27977ea51294a7191f90bce2cae76b97239ea Mon Sep 17 00:00:00 2001 From: helmutm Date: Thu, 23 Dec 2010 07:38:48 +0000 Subject: [PATCH] skip non-office files git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4113 fd906abe-77d9-0310-91a1-e0d9ade77398 --- integrator/office/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integrator/office/base.py b/integrator/office/base.py index 16ed435..9e131bc 100644 --- a/integrator/office/base.py +++ b/integrator/office/base.py @@ -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: