[Zope] How to define input parameters to zpt ?

Dominique Lederer lederer at dmc01.at
Tue May 18 05:24:48 EDT 2004


On Tue, 18 May 2004 11:07:00 +0200, <fowlertrainer at anonym.hu> wrote:

> Hello  !
>
> I remember: anyone say to me that zpt has parameter dictionary.
>
> If I have zpt named zpt1, I can call it by py script:
>
> context.zpt1("1","a",anobj)
>
> But how I get it in zpt ?
>
> I forget this...
>
> I think, that is params, or globals like this:
>
> <p tal:replace="python:_globals[0]"/>
>
> Anyone help me ?
>
> Thanx.
>

in pythonscript:
context.zpt1(var1='blabla', var2='bloblo')

in zpt you can access these via "options":
<span tal:content="options/var1">my var1</span>
<span tal:content="options/var2">my var2</span>

greets Dominique




More information about the Zope mailing list