[Zope] Dictionary and dtml-in

Jesse Pavel jpavel at alum.mit.edu
Wed Apr 14 18:26:44 EDT 2004



Chris Bruce on April 14, 2004 wrote:
 > I have a method in a python product that builds a dictionary object.  When I
 > try to use <dtml-in> to iterate over it, none of the <dtml-var > work for
 > the key name.  I can reference them only by using <dtml-var
 > "_['sequence-item']['key_name']"> .  Is there a way to make the keys work in
 > the <dtml-var > statement?
 > 
 > Is this having to do with acquisition?
 > 
 > 
 > Chris

I believe that you need to use the "mapping" keyword of <dtml-in>.

 - Jesse



More information about the Zope mailing list