[Erp5-report] r35337 nicolas - /erp5/trunk/products/ERP5OOo/transforms/
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 14 14:21:50 CEST 2010
Author: nicolas
Date: Fri May 14 14:21:45 2010
New Revision: 35337
URL: http://svn.erp5.org?rev=35337&view=rev
Log:
Add comment explaining why current implementation
does not use convertToBaseFormat API.
Fill in data property as it is required to access conversion engine.
Modified:
erp5/trunk/products/ERP5OOo/transforms/oood_commandtransform.py
Modified: erp5/trunk/products/ERP5OOo/transforms/oood_commandtransform.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/transforms/oood_commandtransform.py?rev=35337&r1=35336&r2=35337&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/transforms/oood_commandtransform.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/transforms/oood_commandtransform.py [utf8] Fri May 14 14:21:45 2010
@@ -186,11 +186,15 @@
def convert(self):
tmp_ooo = newTempOOoDocument(self.context, self.context.generateNewId())
+ # XXX We store the same content inside data and base_data
+ # otherwise conversion server fails to convert html=>odt for example.
+ # deeper investigation is required inside oood to understand this issue.
tmp_ooo.edit( base_data=self.data,
+ data=self.data,
fname=self.name(),
source_reference=self.name(),
- base_content_type=self.mimetype,)
- tmp_ooo.oo_data = self.data
+ base_content_type=self.mimetype,
+ content_type=self.mimetype,)
self.ooo = tmp_ooo
def convertTo(self, format):
More information about the Erp5-report
mailing list