2 May
2001
2 May
'01
6:06 p.m.
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