[Zope] Calling DTML Document from python script
Oleg Broytmann
Oleg Broytmann <phd@phd.pp.ru>
Tue, 18 Sep 2001 17:55:26 +0400
On Tue, Sep 18, 2001 at 09:51:00AM -0400, Laurent Duchesne wrote:
> I got an object 'file' witch contains a DTML Document object.
> When I try to call it from a pythton script like this :
> print file()
> I get the error :
> Error Type: KeyError
> Error Value: standard_html_header
Every DTML object requires context and REQUEST, so try something like
this: print file(context, context.REQUEST)
Oleg.
----
Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.