<br><font size=2 face="sans-serif">Hi all,</font>
<br>
<br><font size=2 face="sans-serif">I have a very simple thing I want to
do... (yeah I know famous last words). &nbsp;I am querying a mysql database
and displaying the results.. &nbsp;Then I decided that I want to get a
bit fancier.. &nbsp;tal:content item/results value is either a 1 or a 0.
&nbsp;</font>
<br>
<br><font size=2 face="sans-serif">If item/results is == 0 I want to display
&quot;Pass&quot; in green.</font>
<br><font size=2 face="sans-serif">If item/results is == 1 I want to display
&quot;Fail&quot; in red. &nbsp;</font>
<br>
<br><font size=2 face="sans-serif">Can someone please help the newbie out?</font>
<br>
<br>
<br><font size=2 face="sans-serif">My document as it stands today..</font>
<br>
<br><font size=2 face="sans-serif">====================================================</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &lt;h4 tal:define=&quot;global
item python:container.metriX.RemotePush()&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; tal:condition=&quot;not:item&quot;&gt;There
Are No Items meeting the query&lt;/h4&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &lt;table class=&quot;sortable&quot;
id=&quot;rpush&quot; summary=&quot;Remote Push&quot; tal:condition=&quot;item&quot;&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;&lt;tr&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td
width=&quot;20%&quot;&gt;Update Time&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td
width=&quot;15%&quot;&gt;Host&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td
width=&quot;15%&quot;&gt;Update&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td
width=&quot;50%&quot;&gt;Files&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td
width=&quot;2%&quot;&gt;Attempts&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &lt;tbody tal:repeat=&quot;item
python:container.metriX.RemotePush()&quot;&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;tr class=&quot;even&quot;
tal:condition=&quot;repeat/item/even&quot;&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;td tal:content=&quot;item/last_update&quot;&gt;update&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;td tal:content=&quot;item/host&quot;&gt;host&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;td tal:content=&quot;item/return_val&quot;&gt;ret&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;td tal:content=&quot;item/results&quot;&gt;pass&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;td tal:content=&quot;item/num_attempts&quot;&gt;attempts&lt;/td&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;/tr&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;tr class=&quot;odd&quot;
tal:condition=&quot;repeat/item/even&quot;&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;td tal:content=&quot;item/last_update&quot;&gt;update&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;td tal:content=&quot;item/host&quot;&gt;host&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;td tal:content=&quot;item/return_val&quot;&gt;ret&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;td tal:content=&quot;item/results&quot;&gt;results&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;td tal:content=&quot;item/num_attempts&quot;&gt;attempts&lt;/td&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &lt;/tr&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &lt;/tbody&gt;</font>
<br><font size=2 face="sans-serif">&nbsp;&lt;/table&gt;</font>
<br><font size=2 face="sans-serif">comp.web.zope.database/</font>
<br>
<br>
<br><font size=2 face="sans-serif">---<br>
<br>
Steven M. Klass<br>
<br>
Design Automation Manager<br>
<br>
SMSC<br>
3930 East Ray Road, Suite 200<br>
Phoenix, Arizona 85044<br>
(480) 704-7046 (Desk)<br>
(480) 225-1112 (Mobile)<br>
steven.klass@smsc.com</font>