[Zope] iterating dicts in dtml

Jorg E. Rødsjø jorgelr@stud.ntnu.no
Wed, 13 Nov 2002 13:20:06 +0100


The function makePhoneList returns a list of dictionaries. Iterating over
the list is ok, but I am having problems doing the same over the dictionaries.

This is my idea, which does not seem to be the right one:)

<dtml-in "makePhoneList(searchString='foo')">
  <dtml-in sequence-item mapping>
  <dtml-var 'bar'> # Where 'bar' is a key in the dictionary.
  </dtml-in>
</dtml-in>

anyone?

Jorg Rødsjø