Commit da5be84f authored by Jim Fulton's avatar Jim Fulton

Added logic to flush module on edit.

Began fix-up for new protocols.
parent 0682c3b9
...@@ -35,14 +35,9 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, ...@@ -35,14 +35,9 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent,
func_code=None func_code=None
manage_options=( manage_options=(
{'icon':icon, 'label':'Properties', {'label':'Properties', 'action':'manage_main'},
'action':'manage_main', 'target':'manage_main'}, {'label':'Try It', 'action':''},
{'icon':icon, {'label':'Access Control', 'action':'manage_access'},
'label':'Try It',
'action':'', 'target':'manage_main'},
{'icon':'AccessControl/AccessControl_icon.gif',
'label':'Access Control',
'action':'manage_rolesForm', 'target':'manage_main'},
) )
def __init__(self, id='', title='', module='', function=''): def __init__(self, id='', title='', module='', function=''):
...@@ -63,6 +58,8 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, ...@@ -63,6 +58,8 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent,
module, function = join(names[:-1],'.'), names[-1] module, function = join(names[:-1],'.'), names[-1]
self._module=module self._module=module
self._function=function self._function=function
try: del modules[module]
except: pass
self.getFunction() self.getFunction()
if REQUEST: return MessageDialog( if REQUEST: return MessageDialog(
title ='Changed %s' % self.id, title ='Changed %s' % self.id,
......
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