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

Dieter Maurer dieter@handshake.de
Sun, 2 Dec 2001 20:30:11 +0100


Robert Rottermann writes:
 > 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.
But it does what the specification says it should do:

    "tal" attributes are executed in a fixed order, independent from
    the order in the source code: "define" before "repeat"...


Dieter