[ZPT] Re: calling ZPT from script python - problem

Dieter Maurer dieter at handshake.de
Tue Jun 21 13:57:15 EDT 2005


Kenneth Gonsalves wrote at 2005-6-21 09:08 +0530:
> ...
>the variable in question is 'compname' which is either 
>request['compname'] or options['compname'] depending on how the ZPT 
>is called (from web it goes to 'request' and from script in goes to 
>'options')

Thus, you normalize like this

      ... tal:define="
	    ...
	    compname options/compname | request/compname
	    ...
	  "

and then use "compname"...

-- 
Dieter


More information about the ZPT mailing list