[Erp5-report] r14265 - /erp5/trunk/products/ERP5/__init__.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 27 00:40:52 CEST 2007
Author: jerome
Date: Fri Apr 27 00:40:51 2007
New Revision: 14265
URL: http://svn.erp5.org?rev=14265&view=rev
Log:
Allow more classes and function in restricted environment. I think they are
safe (tell me if I'm wrong)
Modified:
erp5/trunk/products/ERP5/__init__.py
Modified: erp5/trunk/products/ERP5/__init__.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/__init__.py?rev=14265&r1=14264&r2=14265&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/__init__.py (original)
+++ erp5/trunk/products/ERP5/__init__.py Fri Apr 27 00:40:51 2007
@@ -83,7 +83,13 @@
content_constructors = content_constructors,
content_classes = content_classes)
+ # Allow some usefull classes and fonctions in TTW code
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
XML = None
More information about the Erp5-report
mailing list