25 Nov
2003
25 Nov
'03
9 p.m.
Andre Meyer wrote:
<table> <span tal:repeat="item here/listItems"> <tr bgcolor="white" tal:condition="repeat/item/even"> <td>...</td> </tr> <tr bgcolor="lightgray" tal:condition="repeat/item/odd"> <td>...</td> </tr> </span> </table>
use css, and python: <table> <tr tal:repeat="i here/listItems" tal:attribute="class python:path('repeat/i/odd') and 'shaded' or nothing"> <td>...</td> </tr> </table> -- Jamie Heilman http://audible.transient.net/~jamie/ "Most people wouldn't know music if it came up and bit them on the ass." -Frank Zappa