Commit 8ea5f7b3 authored by Julien Muchembled's avatar Julien Muchembled

newTempXxx: remove probably useless call to _setObject on temporary container

This fixes TestERP5WebWithDms.test_07_TestDocumentViewBehaviour

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39670 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 659faf34
......@@ -316,12 +316,7 @@ class ERP5TypeInformation(XMLObject,
"""
All ERP5Type.Document.newTempXXXX are constructTempInstance methods
"""
# you should not pass temp_object to constructTempInstance
ob = self.constructInstance(container, id, temp_object=1, *args, **kw)
if container.isTempObject():
container._setObject(id, ob.aq_base)
return ob
return self.constructInstance(container, id, temp_object=1, *args, **kw)
security.declarePublic('constructInstance')
def constructInstance(self, container, id, created_by_builder=0,
......
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