[Zope] Calling DTML
Kevin Carlson
khcarlso@bellsouth.net
Sat, 21 Dec 2002 11:23:28 -0500
This turned out to be a problem in the updoc method, but I couldn't
immediately tell due to the somewhat different tracebacks in 2.6. I added
<error_tb> to my standard_error page to get the traceback and solve the
problem.
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
Dieter Maurer
Sent: Friday, December 20, 2002 2:58 PM
To: Kevin Carlson
Cc: zope@zope.org
Subject: Re: [Zope] Calling DTML
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
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )