[ZPT] set ZSQL attributes from ZPT

Chris Curvey chris@chriscurvey.com
Sat, 14 Jul 2001 12:17:55 -0400


awright, I can get ZPT to collect and display information from an RDBMS
via a ZSQL method, but only if the ZSQL method doesn't take any
parameters.

But what if test_sql_method is defined to take a parameter?  How can I
set the value of the attribute from within my ZPT page?

<table>
  <tr>
    <th>Table Name</th>
  </tr>
  <tbody tal:repeat="stuff here/test_sql_method">
    <tr>
      <td tal:content="stuff/name">Query Result Goes Here</td>
    </tr>
  </tbody>
</table>

(I have searched the zope.org site and I've tried a number of different
"tal" things, but it doesn't seem to work.)
--
Chris Curvey
Curvey Consulting
http://www.chriscurvey.com