[Erp5-report] r19206 - /erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Feb 9 19:14:48 CET 2008
Author: jp
Date: Sat Feb 9 19:14:48 2008
New Revision: 19206
URL: http://svn.erp5.org?rev=19206&view=rev
Log:
Try to select appropriate html for the first page of a presentation.
Modified:
erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
Modified: erp5/trunk/products/ERP5OOo/Document/OOoDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/Document/OOoDocument.py?rev=19206&r1=19205&r2=19206&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/Document/OOoDocument.py (original)
+++ erp5/trunk/products/ERP5OOo/Document/OOoDocument.py Sat Feb 9 19:14:48 2008
@@ -405,6 +405,9 @@
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'
More information about the Erp5-report
mailing list