Commit a984e17c authored by Jean-Paul Smets's avatar Jean-Paul Smets

Try to select appropriate html for the first page of a presentation.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19206 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c43bbe22
......@@ -405,6 +405,9 @@ class OOoDocument(File, ConversionCacheMixin):
for f in z.infolist():
fn = f.filename
if fn.endswith('html'):
if self.getPortalType() == 'Presentation'\
and not (fn.find('impr') >= 0):
continue
data = z.read(fn)
break
mime = 'text/html'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment