Re: [Zope-dev] Re: ...but I want to access 'a particular tuple' in that context!

2004-03-23 Thread Jamie Heilman
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

[Zope-dev] Re: ...but I want to access 'a particular tuple' in that context!

2004-03-23 Thread Tres Seaver
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