Yes, it sure does work. My apologies, perhaps I made some kind of typo when I tested your suggestion. Removing foot from mouth, A. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Evan Simpson Sent: Tuesday, November 05, 2002 4:02 PM To: Andrew Athan Cc: zope@zope.org; robbenhaar@espresto.com Subject: [Zope] Re: tal:repeat usage Andrew Athan wrote:
This, unfortunately, does not work. It yields the error "global name 'a' is not defined"
The issue is that dictionary keys do not seem to be traversible as attributes.
I just tried it, and it worked fine for me. If I use "v/blah" instead, I get a KeyError; I can't replicate your "global name..." error. Here's the whole thing: <span tal:define="global foo python:[{'a':1},{'a':2}]"></span> <span tal:repeat="v foo"> <span tal:content="v/a"></span> </span> Cheers, Evan @ 4-am _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )