Commit 79385e3d authored by Jérome Perrin's avatar Jérome Perrin

add modules to Formulator Field TALES context

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6796 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f358b78d
...@@ -38,6 +38,7 @@ from urllib import quote ...@@ -38,6 +38,7 @@ from urllib import quote
from Globals import InitializeClass, PersistentMapping, DTMLFile, get_request from Globals import InitializeClass, PersistentMapping, DTMLFile, get_request
from AccessControl import Unauthorized, getSecurityManager, ClassSecurityInfo from AccessControl import Unauthorized, getSecurityManager, ClassSecurityInfo
from ZODB.POSException import ConflictError from ZODB.POSException import ConflictError
from Products.PageTemplates.Expressions import SecureModuleImporter
from Products.ERP5Type.Utils import UpperCase from Products.ERP5Type.Utils import UpperCase
import psyco import psyco
...@@ -71,6 +72,7 @@ def get_value(self, id, **kw): ...@@ -71,6 +72,7 @@ def get_value(self, id, **kw):
kw['form'] = form kw['form'] = form
kw['request'] = REQUEST kw['request'] = REQUEST
kw['here'] = object kw['here'] = object
kw['modules'] = SecureModuleImporter
kw['container'] = container kw['container'] = container
try : try :
kw['preferences'] = object.getPortalObject().portal_preferences kw['preferences'] = object.getPortalObject().portal_preferences
......
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