[Zope] Calling a DTML Method from within an External Method
Steve Spicklemire
steve@spvi.com
Fri, 23 Nov 2001 18:12:04 -0500
Hi Bruce,
Yes.. You'll need to pass in whatever namespaces needed to resolve
references used by the DTML method, so you'll need to pass these into
the external method (so that they can be forwarded to your DTML method).
The DTML call signature is something like:
theMethod( client, mapping, **kw)
Probably the most frequently used pattern is just:
result = theDTMLMethod(None, _)
where "_" is the DTML namespace.
but you can also pass an object in as a client, and add any "keyword"
arguments you like, and they will also then resolve in the DTML method.
hope that helps!
-steve
On Friday, November 23, 2001, at 01:25 PM, Bruce Eckel wrote:
> Is there a way, inside an external method, to *call* a DTML Method
> -- that is, to execute it?
>
> If so, how would I pass arguments to the DTML Method?
>
> Thanks...
>