RE: Printing DTML documents from PythonScripts
Forget it - figured it out (RTFM...): __call__(client=None, REQUEST={}, RESPONSE=None, **kw): So: context.standard_html_header(context,REQUEST) The funny thing is, I answered someone's query the other day by quoting the DTML __call__ syntax. Doh! Regards, Phil +----------------------------------+ | Phil Mayers, Network Support | | Centre for Computing Services | | Imperial College | +----------------------------------+ -----Original Message----- From: Mayers, Philip J Sent: 13 February 2001 12:55 To: 'zope@zope.org' Subject: Printing DTML documents from PythonScripts I've got a complex for processing application I'd like to implement in PythonScripts rather than DTML. Ideally, like this:
From: "Mayers, Philip J" <p.mayers@ic.ac.uk>
context.standard_html_header(context,REQUEST)
If you're being called *from* DTML as well, and you've bound your caller's namespace to "_", you should use: context.standard_html_header(None, _) Cheers, Evan @ digicool & 4-am
participants (2)
-
Evan Simpson -
Mayers, Philip J