[Zope-dev] Re: Zope 2.10 TALES repeat and 'item'

2006-06-01 Thread Philipp von Weitershausen
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
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: Zope 2.10 TALES repeat and 'item'

2006-06-01 Thread Philipp von Weitershausen
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

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )