Commit a74965b3 authored by Nicolas Delaby's avatar Nicolas Delaby

* avoid ID conflicts when generating new temp documents

* self.name is a callable attribute
reviewed by romain


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31684 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a872e7c5
......@@ -170,10 +170,10 @@ class OOOdCommandTransform(commandtransform):
xml_declaration=False, pretty_print=False, )
def convert(self):
tmp_ooo = newTempOOoDocument(self.context, self.name)
tmp_ooo = newTempOOoDocument(self.context, self.context.generateNewId())
tmp_ooo.edit( base_data=self.data,
fname=self.name,
source_reference=self.name,
fname=self.name(),
source_reference=self.name(),
base_content_type=self.mimetype,)
tmp_ooo.oo_data = self.data
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