[Erp5-report] r36397 jerome - in /erp5/trunk/products/ERP5Type: ./ Constraint/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 16 15:50:45 CEST 2010


Author: jerome
Date: Wed Jun 16 15:50:45 2010
New Revision: 36397

URL: http://svn.erp5.org?rev=36397&view=rev
Log:
allow PropertyTypeValidity to be used in restricted code

Modified:
    erp5/trunk/products/ERP5Type/Constraint/Constraint.py
    erp5/trunk/products/ERP5Type/__init__.py

Modified: erp5/trunk/products/ERP5Type/Constraint/Constraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Constraint/Constraint.py?rev=36397&r1=36396&r2=36397&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Constraint/Constraint.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Constraint/Constraint.py [utf8] Wed Jun 16 15:50:45 2010
@@ -37,6 +37,7 @@ class Constraint:
     """
       Default Constraint implementation
     """
+    __allow_access_to_unprotected_subobjects__ = 1
     implements( IConstraint, )
 
     _message_id_list = []

Modified: erp5/trunk/products/ERP5Type/__init__.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/__init__.py?rev=36397&r1=36396&r2=36397&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/__init__.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/__init__.py [utf8] Wed Jun 16 15:50:45 2010
@@ -145,6 +145,7 @@ allow_module('Products.ERP5Type.Error')
 allow_module('Products.ERP5Type.JSONEncoder')
 allow_module('Products.ERP5Type.Log')
 ModuleSecurityInfo('Products.ERP5Type.JSON').declarePublic('dumps', 'loads')
+ModuleSecurityInfo('Products.ERP5Type.Constraint').declarePublic('PropertyTypeValidity')
 ModuleSecurityInfo('pprint').declarePublic('pformat', 'pprint')
 
 if sys.version_info[0:2] == (2, 4):




More information about the Erp5-report mailing list