[Zope] displaying a DTML Method from a Python Script

Dario Lopez-Kästen dario@ita.chalmers.se
Thu, 14 Feb 2002 09:11:52 +0100


----- Original Message -----
From: "Doyon, Jean-Francois" <Jean-Francois.Doyon@CCRS.NRCan.gc.ca>
To: <zope@zope.org>
Sent: Wednesday, February 13, 2002 11:35 PM
Subject: [Zope] displaying a DTML Method from a Python Script


> Hello,
>
> I just worte a Python Script that I want to act as a page, so I need it to
> "include" the standard_html_header and standard_html_footer contents.
>
> I tried things like:
>
> print context.standard_html_header()
>

hm... try the following:

print context.standard_html_header(context, context.REQUEST)

that ought to work (I am doing the same myself).

/dario