[ZPT] is this a missunderstanding or a "feature"

Robert Rottermann robert@redcor.ch
Sun, 2 Dec 2001 12:28:55 +0100


The following code does not work
<td tal:repeat="p properties"
      tal:define="prop python:member.getProperty(p, None)">
     <span tal:replace="prop">runyaga@slack.com</span>
 </td>

whereas this works
<td tal:repeat="p properties">
    <span tal:replace="python:member.getProperty(p,
None)">runyaga@slack.com</span>
</td>

the difference is that in the first example I use the sequence item in the
the same tag to define a variable. In the second I use it in a nested tag.

This seems to be inconsistent.

Robert