[ZPT] Apologies about HTML mail: referencing items in a list

Evan Simpson evan@zope.com
Fri, 02 Nov 2001 10:17:32 -0500


Chui G. Tey wrote:

>       <a tal:repeat="bookmark mybookmarks"
>          href="dummy" span tal:attributes="python: bookmark[0]"
> tal:content="bookmark[1]">

Two problems here.  This should be:

<a tal:repeat="bookmark mybookmarks"
    href="dummy" span tal:attributes="href python:bookmark[0]"
    tal:content="python:bookmark[1]">

It's complaining because you left out the attribute name, and you also 
forgot the "python:" on the content expression.

Cheers,

Evan @ Zope