Pass parameters in tal expression
"Chintan D Parikh" <[email protected]> Mon, 17 Nov 2008 12:03:19 -0600 (CST)
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
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