Commit d93785c4 authored by Julien Muchembled's avatar Julien Muchembled

Base.asContext does return a temporary document

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37752 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1c320627
......@@ -2813,7 +2813,8 @@ class Base( CopyContainer,
context.__dict__.update(kw)
# Make it a temp content
temp_object = TempBase(self.getId())
for k in ('isIndexable', 'reindexObject', 'recursiveReindexObject', 'activate', 'setUid', ):
for k in ('isIndexable', 'isTempDocument', 'reindexObject',
'recursiveReindexObject', 'activate', 'setUid'):
setattr(context, k, getattr(temp_object, k))
# Return result
return context.__of__(self.aq_parent)
......
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