Commit cd291901 authored by Jérome Perrin's avatar Jérome Perrin

allow PropertyTypeValidity to be used in restricted code


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36397 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d0153484
......@@ -37,6 +37,7 @@ class Constraint:
"""
Default Constraint implementation
"""
__allow_access_to_unprotected_subobjects__ = 1
implements( IConstraint, )
_message_id_list = []
......
......@@ -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):
......
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