[Zope] How to pass a dictionary object from PythonScript to DTML method?

Dieter Maurer dieter@handshake.de
Wed, 31 Jan 2001 21:35:38 +0100 (CET)


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