6 Mar
2003
6 Mar
'03
1:39 p.m.
Sorin Marti wrote:
I am experimenting around with zope and I want to do following thing:
I call values from the database and give them out. Now I want each second line in a different color.
How do I do that?
You need to be more precise. Are you using dtml or zpt? dtml: <tr bgcolor="<dtml-if sequence-odd>blue</dtml-if>"> zpt: <tr tal:attributes="bgcolor python:test(repeat['item_name'].odd(), 'blue', '')"> regards Max M