[Zope] Picking up a parameter in a ZPT

Andreas Jung lists at andreas-jung.com
Fri Jun 17 11:34:27 EDT 2005



--On 17. Juni 2005 16:19:46 +0100 John Poltorak <jp at warpix.org> wrote:

>
> I'm trying to work out how to pass parameters between various modules
> running under Zope and have got stuck.
>
> In the line below, I need to replace the word 'links' with a variable
> passed by the calling program
>
>
> python:here.parse_file(file=context.links,sepr=',',clone=1)">
>
> I know I can pass the variable using:-
>
>
> <dtml-var expr="test2(parm='links')">
>
>
> Just don't know how to reference it under ZPT.

In the very same way as in DTML using "python: context.test()". If you can 
read German I suggest to read the FAQs on zope.de otherwise -> Zope Book -> 
Advanced ZPT...

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20050617/7877348c/attachment.bin


More information about the Zope mailing list