Commit 491d7f4b authored by Jérome Perrin's avatar Jérome Perrin

put preferences in fields TALES context


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3642 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e6846d77
...@@ -70,6 +70,12 @@ def get_value(self, id, **kw): ...@@ -70,6 +70,12 @@ def get_value(self, id, **kw):
kw['form'] = form kw['form'] = form
kw['here'] = object kw['here'] = object
kw['container'] = container kw['container'] = container
try :
kw['preferences'] = object.getPortalObject()\
.portal_preferences.getActivePreference()
except AttributeError :
LOG('ERP5Form', 0,
'portal_preferences not put in TALES context (not installed?)')
# This allows to pass some pointer to the local object # This allows to pass some pointer to the local object
# through the REQUEST parameter. Not very clean. # through the REQUEST parameter. Not very clean.
# Used by ListBox to render different items in a list # Used by ListBox to render different items in a list
......
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