The following TALES expression using the 'item' name doesn't work: python:repeat['item'].even() Unauthorized: The container has no security assertions. Access to 'even' of (Products.PageTemplates.Expressions.PathIterator object at 0x47986f0) denied. whereas this works: repeat/item/even Anyone knows why? Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com
Florent Guillaume wrote:
The following TALES expression using the 'item' name doesn't work:
python:repeat['item'].even() Unauthorized: The container has no security assertions. Access to 'even' of (Products.PageTemplates.Expressions.PathIterator object at 0x47986f0) denied.
whereas this works:
repeat/item/even
Anyone knows why?
I bet I forgot an __aanus__ = True in ZopeIterator / PathIterator. Philipp
Philipp von Weitershausen wrote:
Florent Guillaume wrote:
The following TALES expression using the 'item' name doesn't work:
python:repeat['item'].even() Unauthorized: The container has no security assertions. Access to 'even' of (Products.PageTemplates.Expressions.PathIterator object at 0x47986f0) denied.
whereas this works:
repeat/item/even
Anyone knows why?
I bet I forgot an __aanus__ = True in ZopeIterator / PathIterator.
Yep, that's it. Fixing this right now. Thanks for catching this. Philipp
participants (2)
-
Florent Guillaume -
Philipp von Weitershausen