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
27e7480c
Commit
27e7480c
authored
Jan 29, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge from 2.3
parent
32389358
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+1
-3
lib/python/Products/PythonScripts/PythonScript.py
lib/python/Products/PythonScripts/PythonScript.py
+1
-3
No files found.
lib/python/OFS/DTMLMethod.py
View file @
27e7480c
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""DTML Method objects."""
__version__
=
'$Revision: 1.
59
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
60
$'
[
11
:
-
2
]
import
History
from
Globals
import
HTML
,
DTMLFile
,
MessageDialog
...
...
@@ -346,8 +346,6 @@ class DTMLMethod(HTML, Acquisition.Implicit, RoleManager,
def
manage_proxy
(
self
,
roles
=
(),
REQUEST
=
None
):
"Change Proxy Roles"
if
not
roles
:
raise
ValueError
,
'You must select one or more proxy roles.'
self
.
_validateProxy
(
REQUEST
,
roles
)
self
.
_validateProxy
(
REQUEST
)
self
.
_proxy_roles
=
tuple
(
roles
)
...
...
lib/python/Products/PythonScripts/PythonScript.py
View file @
27e7480c
...
...
@@ -89,7 +89,7 @@ This product provides support for Script objects containing restricted
Python code.
"""
__version__
=
'$Revision: 1.
19
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
20
$'
[
11
:
-
2
]
import
sys
,
os
,
traceback
,
re
from
Globals
import
DTMLFile
,
MessageDialog
...
...
@@ -359,8 +359,6 @@ class PythonScript(Script, Historical, Cacheable):
manage_proxyForm = DTMLFile('
www
/
pyScriptProxy
', globals())
def manage_proxy(self, roles=(), REQUEST=None):
"Change Proxy Roles"
if not roles:
raise ValueError, '
You
must
select
one
or
more
proxy
roles
.
'
self._validateProxy(roles)
self._validateProxy()
self.ZCacheable_invalidate()
...
...
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