[Erp5-report] r6637 - /erp5/trunk/products/ERP5OOo/OOoTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Apr 14 13:01:58 CEST 2006


Author: fab
Date: Fri Apr 14 13:01:41 2006
New Revision: 6637

URL: http://svn.erp5.org?rev=6637&view=rev
Log:
Backward compatibility bug correction

Modified:
    erp5/trunk/products/ERP5OOo/OOoTemplate.py

Modified: erp5/trunk/products/ERP5OOo/OOoTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/OOoTemplate.py?rev=6637&r1=6636&r2=6637&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/OOoTemplate.py (original)
+++ erp5/trunk/products/ERP5OOo/OOoTemplate.py Fri Apr 14 13:01:41 2006
@@ -425,6 +425,12 @@
       # Replace content.xml in master openoffice template
       ooo_builder.replace('content.xml', doc_xml)
 
+      # Old templates correction
+      try:
+          self.OLE_documents_zipstring
+      except AttributeError:
+          self.OLE_documents_zipstring = None
+
       # If the file has embedded OLE documents, restore it
       if self.OLE_documents_zipstring:
           additional_builder = OOoBuilder( self.OLE_documents_zipstring )




More information about the Erp5-report mailing list