Commit d7ab1a54 authored by 's avatar

merge from 2.3

parent 1f20a470
......@@ -84,7 +84,7 @@
##############################################################################
"""DTML Method objects."""
__version__='$Revision: 1.58 $'[11:-2]
__version__='$Revision: 1.59 $'[11:-2]
import History
from Globals import HTML, DTMLFile, MessageDialog
......@@ -346,6 +346,8 @@ 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)
......
......@@ -89,7 +89,7 @@ This product provides support for Script objects containing restricted
Python code.
"""
__version__='$Revision: 1.18 $'[11:-2]
__version__='$Revision: 1.19 $'[11:-2]
import sys, os, traceback, re
from Globals import DTMLFile, MessageDialog
......@@ -359,6 +359,8 @@ 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()
......
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