[Zope] <dtml-call >

Kevin Dangoor kid@kendermedia.com
Fri, 3 Mar 2000 09:41:36 -0500


----- Original Message -----
From: "Jeff Hoffman" <jeff.hoffman@goingv.com>
To: "Chui Tey" <teyc@bigfoot.com>
Cc: <zope@zope.org>
Sent: Friday, March 03, 2000 1:11 AM
Subject: Re: [Zope] <dtml-call >


>   <dtml-var myMethod>
>
> is equivalent to:
>
>   <dtml-var name=myMethod>
>
> This says, "Include the variable with the name myMethod."

It's also worth mentioning that when you do this to call DTML Methods and
External Methods some things automatically get passed in. When you use the
expression form, these things are not passed in. The most important thing is
that the namespace is passed along to DTML Methods and this() and REQUEST
are passed along to external methods. I haven't looked at the python source
to know exactly what is passed in these cases, but you generally will get
what you want if you do this for DTML Methods:

<dtml-var "myMethod(_.None, _)">

and this for external/python methods:
<dtml-var "myMethod(this(), REQUEST)">

Kevin