[Zope] iterating dictionaries with dtml-in
    Ferhat Ayaz 
    ferhatayaz at yahoo.com
       
    Sat Sep  2 07:40:21 EDT 2006
    
    
  
Hi,
I know it's a silly question. But I was not able to
find an example for this:
I have a list of dicts like 
[
 {'name':'John','age':27},
 {'name':'Marc','age':17}, 
 {'name':'Susanne','age':19}
]
Now I want to iterate each 'name' like
<select>
 <option>John</option>
 <option>Marc</option>
 <option>Susanne</option>
</select>
I want to do this with DTML.
<select>
<dtml-in getDicts>
<option>
         HOW CAN I PUT the keys 'name' HERE ????
</option>
</dtml-in>
</select>
(getDicts returns the above list of dictionaries)
Thanks and greets,
Ferhat
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
    
    
More information about the Zope
mailing list