[Zope-Checkins] CVS: Zope/lib/python/Products/PythonScripts -
PythonScript.py:1.46.2.5
Tres Seaver
cvs-admin at zope.org
Mon Nov 17 17:34:41 EST 2003
Update of /cvs-repository/Zope/lib/python/Products/PythonScripts
In directory cvs.zope.org:/tmp/cvs-serv16574/lib/python/Products/PythonScripts
Modified Files:
Tag: Zope-2_7-branch
PythonScript.py
Log Message:
- Merge tseaver-strexp_delenda-branch to the 2.7 branch.
=== Zope/lib/python/Products/PythonScripts/PythonScript.py 1.46.2.4 => 1.46.2.5 ===
--- Zope/lib/python/Products/PythonScripts/PythonScript.py:1.46.2.4 Tue Nov 4 16:08:22 2003
+++ Zope/lib/python/Products/PythonScripts/PythonScript.py Mon Nov 17 17:34:10 2003
@@ -34,6 +34,7 @@
from AccessControl import full_write_guard, safe_builtins
from AccessControl.ZopeGuards import guarded_getattr, guarded_getitem
from zLOG import LOG, ERROR, INFO, PROBLEM
+from zExceptions import Forbidden
# Track the Python bytecode version
import imp
@@ -336,7 +337,7 @@
user = getSecurityManager().getUser()
if user is not None and user.allowed(self, roles):
return
- raise 'Forbidden', ('You are not authorized to change <em>%s</em> '
+ raise Forbidden, ('You are not authorized to change <em>%s</em> '
'because you do not have proxy roles.\n<!--%s, %s-->'
% (self.id, user, roles))
More information about the Zope-Checkins
mailing list