[Zope-Checkins] SVN: Zope/branches/2.12/src/AccessControl/ZopeGuards.py Fixed an undefined name
Hanno Schlichting
hannosch at hannosch.eu
Sun Oct 17 07:31:51 EDT 2010
Log message for revision 117589:
Fixed an undefined name
Changed:
U Zope/branches/2.12/src/AccessControl/ZopeGuards.py
-=-
Modified: Zope/branches/2.12/src/AccessControl/ZopeGuards.py
===================================================================
--- Zope/branches/2.12/src/AccessControl/ZopeGuards.py 2010-10-17 11:31:08 UTC (rev 117588)
+++ Zope/branches/2.12/src/AccessControl/ZopeGuards.py 2010-10-17 11:31:50 UTC (rev 117589)
@@ -70,7 +70,7 @@
return v
if getSecurityManager().validate(object, object, None, v):
return v
- raise Unauthorized, 'unauthorized access to element %s' % `i`
+ raise Unauthorized('unauthorized access to element %s' % index)
# Create functions using nested scope to store state
# This is less expensive then instantiating and calling instances
More information about the Zope-Checkins
mailing list