<br><font size=2><tt>Hello all,</tt></font>
<br>
<br><font size=2><tt>I am a newbie at Zope, slowly traversing the learning
curve. &nbsp;I am focusing on TAL currently, and am quite a bit confused
with the tal:condition syntax. &nbsp;I have a Z SQL Method that selects
all records from a table in a PostgreSQL database. &nbsp;This method is
called &quot;getTransfers&quot;. &nbsp;I then have a Page Template called
&quot;displayTransfers&quot; that displays the results as tabular HTML.</tt></font>
<br>
<br><font size=2><tt>This works fine. &nbsp;However, where there isn't
a record (i.e. an empty string), a &lt;TD&gt; will not be defined so that
it leaves ugly gaps in the table. &nbsp;To ensure that a '&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;'
replaces an empty string '' I added two tal:condition statements. &nbsp;This
works, but is sort of ugly looking as, in my head, it is the equivalent
of two 'if' statements when it should be an 'if/else'. &nbsp;The below
code works, however is there a cleaner way to do this?</tt></font>
<br>
<br><font size=2><tt>### START CODE ###</tt></font>
<br>
<br><font size=2><tt>&lt;table border=&quot;1&quot;&gt;</tt></font>
<br><font size=2><tt>&nbsp; &lt;tr&gt;&lt;th&gt;Date&lt;/th&gt;&lt;th&gt;Server&lt;/th&gt;&lt;/tr&gt;</tt></font>
<br><font size=2><tt>&nbsp; &lt;tr tal:repeat=&quot;transfer container/getTransfers&quot;&gt;</tt></font>
<br><font size=2><tt>&nbsp; &nbsp; &lt;td tal:content=&quot;structure transfer/time_stamp&quot;&gt;time_stamp&lt;/td&gt;</tt></font>
<br><font size=2><tt>&nbsp; &nbsp; &lt;td tal:condition=&quot;python: transfer.server==''&quot;&gt;&amp;nbsp;&lt;/td&gt;
</tt></font>
<br><font size=2><tt>&nbsp; &nbsp; &lt;td tal:condition=&quot;python: transfer.server!=''&quot;</tt></font>
<br><font size=2><tt>&nbsp; &nbsp; &nbsp; &nbsp; tal:content=&quot;structure
transfer/server&quot;&gt;server&lt;/td&gt;</tt></font>
<br><font size=2><tt>&nbsp; &lt;/tr&gt;</tt></font>
<br><font size=2><tt>&lt;/table&gt;</tt></font>
<br>
<br><font size=2><tt>### END CODE ###</tt></font>
<br>
<br><font size=2><tt>I'm from a PHP/Perl/mySQL/postgreSQL background and
am new to OOP, Python and Zope so I greatly appreciate any assistance with
this.</tt></font>
<br>
<br><font size=2><tt>Regards,</tt></font>
<br><font size=2><tt>Tom</tt></font>