[Zope-CMF] DTML trans to ZPT

Chris Withers chrisw at nipltd.com
Tue Aug 26 20:04:35 EDT 2003


Paul Winkler wrote:
> ZPT provides no equivalent to dtml-call. It's pretty common to use
> a tal:define with a clearly-marked dummy variable, like so:
> 
> <div tal:omit-tag="" 
>      tal:define="dummy python:request.set('tracktable', 'hosts');
>                  dummy request/usercnt" />

That's actually pretty evil, wrong and sinful. I've yet to see someone 
successfully justify setting a request variable in a ZPT...

Chris ;-)





More information about the Zope-CMF mailing list