Commit 0e943a17 authored by Jérome Perrin's avatar Jérome Perrin

Allow more classes and function in restricted environment. I think they are

safe (tell me if I'm wrong)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14265 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f11eda3a
...@@ -83,7 +83,13 @@ def initialize( context ): ...@@ -83,7 +83,13 @@ def initialize( context ):
content_constructors = content_constructors, content_constructors = content_constructors,
content_classes = content_classes) content_classes = content_classes)
# Allow some usefull classes and fonctions in TTW code
ModuleSecurityInfo('ZODB.POSException').declarePublic('ConflictError') ModuleSecurityInfo('ZODB.POSException').declarePublic('ConflictError')
ModuleSecurityInfo('pprint').declarePublic('pformat')
ModuleSecurityInfo('zExceptions').declarePublic('BadRequest', 'NotFound',
'Redirect', 'Unauthorized')
ModuleSecurityInfo('Products.CMFCore.WorkflowCore').declarePublic(
'WorkflowException')
# backward compatibility names # backward compatibility names
XML = None XML = None
......
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