[ZPT] set ZSQL attributes from ZPT
Chris Curvey
chris@chriscurvey.com
Sat, 14 Jul 2001 13:58:19 -0400
Thanks Evan. After some digging, I found the solution (I think, posted by
you) somewhere on zope.org. For anyone else, here's the solution.
<table>
<tr>
<th>Table Name</th>
</tr>
<tbody tal:repeat="stuff python:here.test_sql_method(paramFoo='S')">
<tr>
<td tal:content="stuff/name">Query Result Goes Here</td>
</tr>
</tbody>
</table>
Evan Simpson wrote:
> From: "Chris Curvey" <ccurvey@bellatlantic.net>
> > 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?
>
> Anything that requires explicit parameters, including DTML, ZSQL, and
> Scripts, must be called from a Python expression.
>
> Cheers,
>
> Evan @ digicool
>
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt
--
Chris Curvey
Curvey Consulting
http://www.chriscurvey.com