Commit dec79ede authored by Jérome Perrin's avatar Jérome Perrin

Allow the use of 'context' variable in fields TALES expressions, for

consistency with python scripts and page templates.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14570 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6016292a
......@@ -71,12 +71,13 @@ def get_value(self, id, **kw):
kw['form'] = form
kw['request'] = REQUEST
kw['here'] = obj
kw['context'] = obj
kw['modules'] = SecureModuleImporter
kw['container'] = container
try :
kw['preferences'] = obj.getPortalObject().portal_preferences
except AttributeError :
LOG('ERP5Form', 0,
LOG('ERP5Form', PROBLEM,
'portal_preferences not put in TALES context (not installed?)')
# This allows to pass some pointer to the local object
# through the REQUEST parameter. Not very clean.
......
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