Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
a00ac2fa
Commit
a00ac2fa
authored
Sep 21, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug that prevented setting permissions on ZClass
ExternalMethods.
parent
d4237698
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lib/python/Products/ExternalMethod/ExternalMethod.py
lib/python/Products/ExternalMethod/ExternalMethod.py
+5
-4
No files found.
lib/python/Products/ExternalMethod/ExternalMethod.py
View file @
a00ac2fa
...
...
@@ -88,10 +88,9 @@
This product provides support for external methods, which allow
domain-specific customization of web environments.
"""
__version__
=
'$Revision: 1.32 $'
[
11
:
-
2
]
from
Acquisition
import
Explicit
__version__
=
'$Revision: 1.33 $'
[
11
:
-
2
]
from
Globals
import
Persistent
,
HTMLFile
,
MessageDialog
,
HTML
import
OFS.SimpleItem
import
OFS.SimpleItem
,
Acquisition
from
string
import
split
,
join
,
find
,
lower
import
AccessControl.Role
,
sys
,
os
,
stat
,
traceback
from
OFS.SimpleItem
import
pretty_tb
...
...
@@ -127,7 +126,7 @@ def manage_addExternalMethod(self, id, title, module, function, REQUEST=None):
self
.
_setObject
(
id
,
i
)
return
self
.
manage_main
(
self
,
REQUEST
)
class
ExternalMethod
(
OFS
.
SimpleItem
.
Item
,
Persistent
,
Explicit
,
class
ExternalMethod
(
OFS
.
SimpleItem
.
Item
,
Persistent
,
Acquisition
.
Explicit
,
AccessControl
.
Role
.
RoleManager
):
"""Web-callable functions that encapsulate external python functions.
...
...
@@ -148,6 +147,8 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, Explicit,
meta_type
=
'External Method'
func_defaults
=
()
func_code
=
None
ZopeTime
=
Acquisition
.
Acquired
manage_options
=
(
{
'label'
:
'Properties'
,
'action'
:
'manage_main'
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment