[Zope] inelegant repetition of ZPT code
Paul Winkler
pw_lists at slinkp.com
Tue Nov 25 16:18:38 EST 2003
On Tue, Nov 25, 2003 at 10:02:37PM +0100, Andreas Jung wrote:
> what's wrong with
>
> <untested>
>
> <tr tal:attributes="bgcolor python: test(repeat['item'].odd, 'white',
> 'lightgray'" />
>
> </untested>
I believe the only thing wrong is that repeat['item'].odd may
be a method, not an attribute, so your test as written would always
be true. But I couldn't remember so I decided to use the path() function in
my version rather than looking it up :-)
--
Paul Winkler
http://www.slinkp.com
More information about the Zope
mailing list