Commit 3aaf7a3a authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix it again.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31228 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d68829c7
......@@ -491,6 +491,12 @@ class TempDocumentConstructor(DocumentConstructor):
def __call__(self, folder, id, REQUEST=None,
activate_kw=None, is_indexable=None, reindex_kw=None, **kw):
o = self.klass(id)
# Use the real container instead of the factory dispatcher.
#
# XXX some code use this constructor directly instead of
# through the factory system.
if getattr(aq_base(folder), 'Destination', None) is not None:
folder = folder.Destination()
if folder.isTempObject():
folder._setObject(id, o)
o = o.__of__(folder)
......
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