How to define input parameters to zpt ?
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. -- Üdv/Kind of Regards: fowlertrainer@anonym.hu mailto:fowlertrainer@anonym.hu
On Tue, 18 May 2004 11:07:00 +0200, <fowlertrainer@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
hi! On Tue, May 18, 2004 at 11:07:00AM +0200, fowlertrainer@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]"/>
it's 'options', like: <p tal:replace="options/whatever" /> cheers - sifu
participants (3)
-
Dominique Lederer -
fowlertrainer@anonym.hu -
Siegmund Fuehringer