Commit a00ac2fa authored by Jim Fulton's avatar Jim Fulton

Fixed a bug that prevented setting permissions on ZClass

ExternalMethods.
parent d4237698
...@@ -88,10 +88,9 @@ ...@@ -88,10 +88,9 @@
This product provides support for external methods, which allow This product provides support for external methods, which allow
domain-specific customization of web environments. domain-specific customization of web environments.
""" """
__version__='$Revision: 1.32 $'[11:-2] __version__='$Revision: 1.33 $'[11:-2]
from Acquisition import Explicit
from Globals import Persistent, HTMLFile, MessageDialog, HTML from Globals import Persistent, HTMLFile, MessageDialog, HTML
import OFS.SimpleItem import OFS.SimpleItem, Acquisition
from string import split, join, find, lower from string import split, join, find, lower
import AccessControl.Role, sys, os, stat, traceback import AccessControl.Role, sys, os, stat, traceback
from OFS.SimpleItem import pretty_tb from OFS.SimpleItem import pretty_tb
...@@ -127,7 +126,7 @@ def manage_addExternalMethod(self, id, title, module, function, REQUEST=None): ...@@ -127,7 +126,7 @@ def manage_addExternalMethod(self, id, title, module, function, REQUEST=None):
self._setObject(id,i) self._setObject(id,i)
return self.manage_main(self,REQUEST) return self.manage_main(self,REQUEST)
class ExternalMethod(OFS.SimpleItem.Item, Persistent, Explicit, class ExternalMethod(OFS.SimpleItem.Item, Persistent, Acquisition.Explicit,
AccessControl.Role.RoleManager): AccessControl.Role.RoleManager):
"""Web-callable functions that encapsulate external python functions. """Web-callable functions that encapsulate external python functions.
...@@ -148,6 +147,8 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, Explicit, ...@@ -148,6 +147,8 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, Explicit,
meta_type='External Method' meta_type='External Method'
func_defaults=() func_defaults=()
func_code=None func_code=None
ZopeTime=Acquisition.Acquired
manage_options=( manage_options=(
{'label':'Properties', 'action':'manage_main'}, {'label':'Properties', 'action':'manage_main'},
......
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