[Zope] Re: DTML calling explained
Evan Simpson
evan@4-am.com
Wed, 2 May 2001 13:06:52 -0500
From: "Brad Clements" <bkc@murkworks.com>
> Adding REQUEST solved my problem. I had also tried adding _ but that
didn't work
> from pythonscript even though _ was bound to the dtml namespace.
That's probably because your Script wasn't being called from DTML, and
therefore had an empty namespace.
> pythonscript ProcessPath calls DTML Method ProductInfo which dtml-var
DTML
> Method Standard_Html_Header.
> If ProcessPath includes REQUEST in it's call to ProductInfo, all is
well. But if
> REQUEST is not included, then I get a KeyError on the <dtml-unless
bgcolor>
> statement.
Hmm. I'm not sure why that is. I'll have to look into it.
Cheers,
Evan @ digicool & 4-am