[Zope] Calling DTML
Dieter Maurer
dieter@handshake.de
Fri, 20 Dec 2002 20:58:03 +0100
Kevin Carlson writes:
> Forwarding control from a Python script a DTML method in Zope 2.5.1 used to
> work like this:
>
> return _['updoc'](container, request)
I do not believe that this can work...
"_[...]" calls the looked up object when it is callable.
A DTML object is callable.
Its result would need to be another DTML object such that it can
do something with the remaining call and its arguments.
> Now I am getting a Key error on 'updoc' which is a DTML method in the same
> skinned folder as the script.
Seems that "updoc" cannot be reached by your DTML namespace.
How did you call the Python Script from the DTML object?
Dieter