On Wed, 21 Mar 2001, Joel Burton wrote:
I have a PythonScript that uses traversal_subpath to suck in the rest of the path, and then calls a standard DTML document to render it, with the subpath being handed off in the namespace.
The script just has
"""Call the faculty page for this faculty member"""
context.facsearch(facid = traverse_subpath[0])
However, the called DTML itself calls things like standard_html_header, which throw up errors.
How can I call a DTML method from a PythonScript while passing in the right context?
<untested> context.facsearch(context, context.REQUEST, facid = traverse_subpath[0]) </untested> Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.