[ZPT] repeat tag behaviour
Guido van Rossum
guido@digicool.com
Fri, 16 Mar 2001 21:32:22 -0500
> i am dead impressed by the zpt stuff.
Thanks! You'll love the next version...
> however, just trying out the repeat
> examples, and i can't seem to get access to the list of items that i am
> iterating over. for example:
>
> <ul>
> <li tal:repeat="type python:'digital', 'analog', 'organic'">
> <a href="dummy" tal:replace="type">selection</a>
> </li>
> </ul>
>
> brings up an error:
>
> Error Type: KeyError
> Error Value: type
Use var:type. This will be fixed in the next version -- the TALES
syntax will change dramatically. See the Wiki:
http://dev.zope.org/Wikis/DevSite/Projects/ZPT/TALES%20Specification%201.0
--Guido van Rossum (home page: http://www.python.org/~guido/)