[Zope] Draconian security precautions in PythonScripts
Andreas Jung
lists at andreas-jung.com
Fri Jul 16 00:36:16 EDT 2004
--On Donnerstag, 15. Juli 2004 11:57 Uhr -0500 Michael Ekstrand
<michael-zope at elehack.net> wrote:
> 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?
>
Maybe your tuple is not really a tuple but something else that looks like a
tuple.
Use 'pdb' to figure it out.
-aj
More information about the Zope
mailing list