[Zope-Checkins] CVS: Zope/lib/python/Products/PythonScripts - PythonScript.py:1.51

Tres Seaver cvs-admin at zope.org
Tue Nov 18 08:17:37 EST 2003


Update of /cvs-repository/Zope/lib/python/Products/PythonScripts
In directory cvs.zope.org:/tmp/cvs-serv30559/lib/python/Products/PythonScripts

Modified Files:
	PythonScript.py 
Log Message:
 - Merge tseaver-strexp_delenda-branch to the head.


=== Zope/lib/python/Products/PythonScripts/PythonScript.py 1.50 => 1.51 ===
--- Zope/lib/python/Products/PythonScripts/PythonScript.py:1.50	Tue Nov  4 16:07:43 2003
+++ Zope/lib/python/Products/PythonScripts/PythonScript.py	Tue Nov 18 08:17:06 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