[Zope] Keys from dictionaries

Axel Missbach Axel.Missbach@t-online.de
Sun, 11 Mar 2001 18:34:01 +0100


Hi people,

please tell me a way to get the keys and/or values form an dictonary in
an DTML-Document

I want to get the keys from the SQL-Method. I thought it has to look
like this:

<dtml-in Query>
 <dtml-var sequence-key>
 <dtml-var sequence-item>
</dtml-in>

The result ist only the first key and some curious value (perhaps the
rest of the address string).

Trying the equivalent in python-script, like

for x in Query:
 print x.keys()
return printed

is rejected by the parser

with regards

Axel