[Zope] A ZPT newbie question

Dieter Maurer dieter@handshake.de
Tue, 5 Nov 2002 21:01:04 +0100


Clemens Robbenhaar writes:
 > ...
 >  "tal:condition" is evaluated before "tal:replace" (see Zope Book,
 > Appendix C, ZPT Reference), thus You should be able to save at least one
 > <span> by saying:
 > 
 >  <span tal:condition="python: this_object is not None"
 >        tal:replace="python: this_object.getSomethingBig() " /> 
You can also use

    <span tal:replace="python: this_object and this_object.getSomethingBig()" />


Dieter