The traceback tells you (kept part) that the "KeyError: 'number'" comes
from "here/?number/macros/author" and it is right:
Unless you use "global", variables defined in TAL only live
within the element (aka "tag") you have defined them in.
In your special case, this is the "td" element.
It it not defined in the following "td"s.
A common approach is to use artificial "block" elements to
carry the definitions for some elements in the loop body -- similar to
<tr tal:repeat="...">
<tal:block define="number ...">
<td tal:content="number" />
...
<td><tal:content metal:use-macro="here/?number/..." /></td>
...
</tal:block>
</tr>
Apparently, you already use "tal" prefixed tag names.
The "tal:block" is another standard use...
Another advice: carefully read the PageTemplate section in
the Zope Book (2.7 edition, on "plope.org").
--
Dieter
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announcehttp://mail.zope.org/mailman/listinfo/zope-dev )