Commit a4539e17 authored by Jim Fulton's avatar Jim Fulton

Updated for latest security model.

parent 60dc1eae
......@@ -35,9 +35,17 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent,
manage_options=(
{'label':'Properties', 'action':'manage_main'},
{'label':'Try It', 'action':''},
{'label':'Access Control', 'action':'manage_access'},
{'label':'Security', 'action':'manage_access'},
)
__ac_permissions__=(
('View management screens', ['manage_main','manage_tabs']),
('Change permissions', ['manage_access']),
('Change', ['manage_edit',]),
('View', ['__call__',]),
('Shared permission', ['',]),
)
def __init__(self, id, title, module, function):
self.id=id
self.manage_edit(title, module, function)
......@@ -86,6 +94,7 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent,
return f
__call____roles__='Manager', 'Shared'
def __call__(self, *args):
try: f=self._v_f
except: f=self.getFunction()
......
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