[Zope] RE: repeat variable problem

Fernando Martins fmartins@hetnet.nl
Fri, 27 Jun 2003 20:07:18 +0200


Evan Simpson wrote:
> Fernando Martins wrote:
> > and this one does not??
> >
> > <tr tal:repeat="msg msg_list" tal:attributes="bgcolor
> > python:test(repeat['msg'].even, here.tablecolor4, here.tablecolor3)">
>
> 'even' is a method, so this needs to be "repeat['msg'].even()".
>

Thanks, this deserves an statement in the Zope book. I'll add a comment
on-line but is it still worth to add comments to the zope book 2.5? (version
2.6 pages don't support them).

Cheers,
Fernando