[ZPT] Pass parameters in tal expression

Chintan D Parikh cparikh at tlc2.uh.edu
Mon Nov 17 13:03:19 EST 2008


Hi,

I'm trying to pass parameters that are fetched and displayed from database
thru tal:repeat, in order to sent emails.

Here is the code snippet:

<tr tal:repeat="record container/map-db/alert_subscription_mstQ">
<td tal:define="emailflag python:
context/map-db/alert_subscription_mstS(record)"
tal:content="emailflag">Failure</td>

Here the alert_subscription_mstQ is a Z SQL Method that fetches records
based on my set criteria. It returns 6 columns, values of which i need to
show on the page and also pass them to the alert_subscription_mstS python
script to sent emails.

I later learned that passing parameters in expressions is not allowed. Can
someone suggest me an alternative.


----------------
Thanks & Regards
Chintan Parikh


More information about the ZPT mailing list