Julian Yap wrote:
I used the following and it works great (without some formatting for
<tr tal:define="customer container/getCustomerLicences"
hmm, this strikes me as just plain wrong :-S
Why is getCustomerLicenses returning more than one row if you only want
the first one?
If it only returned one row, then you could do:
<tr tal:repeat="customer container/getCustomerLicences">
...no need for the condition or the yucky integer indexes.
Now, if you really can't stop your sql returning more than one row
(LIMIT 1 anyone?) then how about:
<tr tal:define="customers container/getCustomerLicences;
customer python:customers and customers"
Simplistix - Content Management, Zope & Python Consulting
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -