Commit 2d038983 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

revert r39561-r39562 for now.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39573 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent afea81a2
...@@ -317,13 +317,9 @@ class ERP5TypeInformation(XMLObject, ...@@ -317,13 +317,9 @@ class ERP5TypeInformation(XMLObject,
All ERP5Type.Document.newTempXXXX are constructTempInstance methods All ERP5Type.Document.newTempXXXX are constructTempInstance methods
""" """
# you should not pass temp_object to constructTempInstance # you should not pass temp_object to constructTempInstance
original_container = container.getOriginalDocument() ob = self.constructInstance(container, id, temp_object=1, *args, **kw)
if original_container is None: if container.isTempObject():
ob = self.constructInstance(container, id, temp_object=1, *args, **kw)
container._setObject(id, ob.aq_base) container._setObject(id, ob.aq_base)
else:
ob = self.constructInstance(original_container, id, temp_object=1,
*args, **kw)
return ob return ob
......
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