[ZPT] repeat variables

richard@bizarsoftware.com.au richard@bizarsoftware.com.au
Fri, 18 May 2001 09:13:56 +1000


Tim Moore wrote:
> I must be missing something regarding how these are supposed to be
> used.  The TAL spec and TALES spec each reference the other for
> documentation about the specifics. :-\
> 
> I have this:
> 
> <div metal:fill-slot="main"
>      tal:repeat="performer here/getPerformers"
>      tal:replace="structure python:performer.render(even=repeat.performer.even)" />
> 
> When I try to view the template, I get an attribute error on
> 'performer'.  What am I doing wrong?

Currently, that must be spelled "even=repeat['performer'].even"

I'm hoping that an attribute interface will be implemented to make this
more sane...


    Richard

-- 
Richard Jones
richard@bizarsoftware.com.au
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)