[Zope] Dictionary and dtml-in

Chris Bruce chris at chrisbruce.com
Wed Apr 14 18:25:56 EDT 2004


Thanks!!

That did it.


Chris
----- Original Message ----- 
From: Jesse Pavel
To: Chris Bruce
Cc: zope at zope.org
Sent: Wednesday, April 14, 2004 3:26 PM
Subject: Re: [Zope] Dictionary and dtml-in




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