[Zope] Draconian security precautions in PythonScripts

Michael Ekstrand michael-zope at elehack.net
Thu Jul 15 12:57:24 EDT 2004


In a PythonScript I have, I am needing to iterate over a dictionary 
returned by another PythonScript. When I do:

for key, val in container.time_extract(evt.time).iteritems():
    some stuff

I get an AccessControl.unauthorized.Unauthorized that says "You are not 
allowed to access 'a particular tuple' in this context." If I iterate 
over just the keys, it does the same, except for 'a particular string'. 
It's seeming like there are some sever restrictions on what I can do 
with some tuples or dictionaries. Should I be able to access them, and 
if so, what am I missing? Or is there a reason why this access is 
prohibited?

TIA,
-Michael


More information about the Zope mailing list