Tres Seaver wrote:
>
> The 'iteritems' method of a dictionary returns an object of type
> 'dictionary-iterator'; AccessControl.ZopeGuards makes no container
> assertions about that type, although it *does* permit calling the
> 'iteritems' method which returns an instance of it.
>
> I find it
Jamie Heilman wrote:
Try this in a PythonScript:
d = {1:2}
for t in d.iteritems():
pass
Annoyingly, it raises Unauthorized: You are not allowed to access 'a
particular tuple' in this context
Is there a reason for this, or is it just part of
AccessControl/RestrictedPython that hasn't been fleshed