Commit a7fad238 authored by Nicolas Delaby's avatar Nicolas Delaby

Add comment explaining why current implementation

does not use convertToBaseFormat API.
Fill in data property as it is required to access conversion engine.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35337 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 278b4a32
......@@ -186,11 +186,15 @@ class OOOdCommandTransform(commandtransform):
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):
......
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