[Zope] Re: Calling DTML

Maik Jablonski maik.jablonski@uni-bielefeld.de
Fri, 20 Dec 2002 00:00:18 +0100


Kevin Carlson wrote:
> Forwarding control from a Python script a DTML method in Zope 2.5.1 used to
> work like this:
> 
>    return _['updoc'](container, request)
> 
> Now I am getting a Key error on 'updoc' which is a DTML method in the same
> skinned folder as the script.

1. Check that 'updoc' is a DTML-Method and not a DTML-Document.
2. Check Bindings-Tab in PythonScript. Is _ set as namespace-binding?
3. Try to submit the whole namespace to your DTML-Method:
    return _['updoc'](container, _)

-mj