Re: [ZPT] Pass parameters in tal expression

2008-11-19 Thread Dieter Maurer
Chintan D Parikh wrote at 2008-11-17 12:03 -0600:
>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:
>
>
>tal:content="emailflag">Failure
>
>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.

Try:

   http://mail.zope.org/mailman/listinfo/zpt


Re: [ZPT] Pass parameters in tal expression

2008-11-17 Thread Andreas Jung

On 17.11.2008 19:03 Uhr, Chintan D Parikh wrote:

Hi,

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

python: context/map-db/alert_subscription_mstS(record)"

Your mixing path expressions and Python syntax. 'context/map-db'
is a *division*. Replace the slashes with dots (and re-read
the ZPT documentation).

-aj
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[EMAIL PROTECTED]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

___
ZPT mailing list
ZPT@zope.org
http://mail.zope.org/mailman/listinfo/zpt


[ZPT] Pass parameters in tal expression

2008-11-17 Thread Chintan D Parikh
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:


Failure

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
___
ZPT mailing list
ZPT@zope.org
http://mail.zope.org/mailman/listinfo/zpt