Re: [Zope] How to pass a dictionary object from PythonScript to DTML method?
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
9195
Age (days ago)
9195
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dieter Maurer