Re: [Zope3-Users] Re: Question about ForbiddenAttribute...

2006-06-14 Thread Thierry FLORAC
On Tue, 2006-06-13 at 08:28 +0200, Philipp von Weitershausen wrote: As said above, 'result' will be security proxied. Security proxies for lists only allow methods that don't change the lists. result.sort() would change it. Hence it's forbidden. An easy workaround is to use sorted():

[Zope3-Users] Re: Question about ForbiddenAttribute...

2006-06-13 Thread Philipp von Weitershausen
Thierry FLORAC wrote: Hi, I'm trying to build a sample photos management application for Zope-3.2, with the following interfaces and classes : - class GalleryFolder(Folder) def getImages(self): return [item for item in self.values() if