[Zope] Lines with different colors
Max M
maxm@mxm.dk
Thu, 06 Mar 2003 14:39:15 +0100
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