Commit 149da861 authored by Jean-Paul Smets's avatar Jean-Paul Smets

asContext uses TempBase instance for monkey patch


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1364 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a2c3ddde
......@@ -1271,8 +1271,9 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana
# Define local properties
if kw is not None: context.__dict__.update(kw)
# Make it a temp content
temp_object = TempBase()
for k in ('isIndexable', 'reindexObject', 'recursiveReindexObject', 'activate', 'setUid', ):
setattr(context, k, getattr(TempBase,k))
setattr(context, k, getattr(temp_object,k))
# Return result
return context.__of__(self)
else:
......
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