Expression Contexts need a 'context' key for the UnicodeConflictResolver to work

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31588 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9d9d36d2
...@@ -1219,6 +1219,9 @@ def createExpressionContext(object, portal=None): ...@@ -1219,6 +1219,9 @@ def createExpressionContext(object, portal=None):
'modules': SecureModuleImporter, 'modules': SecureModuleImporter,
'member': member, 'member': member,
'here': object, 'here': object,
# XXX 'here' is deprecated throughout the Zope code base. 'context' is
# the proper name these days
'context': object,
} }
ec = getEngine().getContext(data) ec = getEngine().getContext(data)
tv[cache_key] = ec tv[cache_key] = ec
......
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