Commit 28585d6e authored by Fabien Devaux's avatar Fabien Devaux

Backward compatibility bug correction


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6637 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8202d2fd
......@@ -425,6 +425,12 @@ xmlns:config="http://openoffice.org/2001/config" office:version="1.0">
# 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 )
......
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