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() and varieties thereof, but the closest I get is an error about "this" not being defined, which is funny since "this" does not appear anywhere in my script. Thanks in advance for the help! Jean-François Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410
----- 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
participants (2)
-
Dario Lopez-Kästen -
Doyon, Jean-Francois