31 Jan
2001
31 Jan
'01
8:35 p.m.
Dirksen writes:
I have a Python Script 'test' to return a dictionary object, but these DTML statements can't retrieve that object: <dtml-let z="test()"> <dtml-var "z['b']"> </dtml-let>
It reported a KeyError, Error value: 0. What goes wrong? Are you sure, the exception comes from the DTML?
Look at the backtrace, it should tell you. You DTML should not be able to raise this "KeyError". Dieter