Commit 71a62798 authored by Hanno Schlichting's avatar Hanno Schlichting

Fixed an undefined name

parent 7529ff29
......@@ -70,7 +70,7 @@ def guarded_getitem(object, index):
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
......
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