[ZPT] Using ZSQL from ZPT

Joel Burton joel@joelburton.com
Thu, 21 Mar 2002 19:21:03 -0500


> >   <tr tal:repeat="results
> >
> python:container.DataReader.getResults(usr_name=container.portal_m
> embership
> >. getAuthenticatedMember().getUserName())">>
> >     <td tal:content="python:results[][]">content</td>
> >     <td tal:content="python:results[][]">content</td>
> >   </tr>
> >
> > and I've also tried the results/... way, but still no luck (the
> item/x way
> > just doesn't work

Hmmm. A simple thing like:

<li tal:repeat="result python:here.SQLMethod()">
  <b tal:content="result/field_name">
</li>

works just fine for me. When you say this "just doesn't work", what's
happening?
What error message are you getting?