25 Nov
2003
25 Nov
'03
9:18 p.m.
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