Commit 80fbd023 authored by Sebastien Robin's avatar Sebastien Robin

add support of proxy roles to ERP5 Python scripts

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39961 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04378b58
...@@ -102,6 +102,13 @@ class PythonScript(XMLObject, ZopePythonScript): ...@@ -102,6 +102,13 @@ class PythonScript(XMLObject, ZopePythonScript):
""" """
self.write(value) self.write(value)
def _setProxyRoleList(self, value):
"""
override to call ZopePythonScript methods
"""
self._baseSetProxyRoleList(value)
self.manage_proxy(roles=value)
__call__ = ZopePythonScript.__call__ __call__ = ZopePythonScript.__call__
def edit(self, **kw): def edit(self, **kw):
......
...@@ -41,6 +41,11 @@ class PythonScript: ...@@ -41,6 +41,11 @@ class PythonScript:
'type' : 'string', 'type' : 'string',
'storage_id' : '_params', 'storage_id' : '_params',
'mode' : '' }, 'mode' : '' },
{ 'id' : 'proxy_role',
'description' : 'A local property description',
'type' : 'tokens',
'storage_id' : '_proxy_roles',
'mode' : '' },
) )
_categories = ('callable_type',) _categories = ('callable_type',)
......
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