Commit 260173c5 authored by Nicolas Delaby's avatar Nicolas Delaby

revert r31684 as it commits last_id on document

for each conversion.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38980 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 16382bc0
......@@ -187,14 +187,13 @@ class OOOdCommandTransform(commandtransform):
xml_declaration=False, pretty_print=False, )
def convert(self):
tmp_ooo = newTempOOoDocument(self.context, self.context.generateNewId())
tmp_ooo = newTempOOoDocument(self.context, self.name)
# 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(),
fname=self.name,
source_reference=self.name,
base_content_type=self.mimetype,
content_type=self.mimetype,)
self.ooo = tmp_ooo
......
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