[Erp5-report] r43875 ivan - /erp5/trunk/products/ERP5OOo/OOoUtils.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 2 10:53:30 CET 2011


Author: ivan
Date: Wed Mar  2 10:53:30 2011
New Revision: 43875

URL: http://svn.erp5.org?rev=43875&view=rev
Log:
We need to explicitly update manifest file when adding a new image otherwise produced file will be corrupted.

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

Modified: erp5/trunk/products/ERP5OOo/OOoUtils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/OOoUtils.py?rev=43875&r1=43874&r2=43875&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/OOoUtils.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/OOoUtils.py [utf8] Wed Mar  2 10:53:30 2011
@@ -201,6 +201,8 @@ class OOoBuilder(Implicit):
       warn('content_type argument must be passed explicitely', FutureWarning)
       content_type = mimetypes.guess_type(name)[0]
     self.addManifest(name, content_type)
+    # we need to explicitly update manifest file
+    self.updateManifest()
     self.replace(name, image)
     is_legacy = ('oasis.opendocument' not in self.getMimeType())
     return "%s%s" % (is_legacy and '#' or '', name,)



More information about the Erp5-report mailing list