[ZPT] repeat trick

Evan Simpson evan@digicool.com
Tue, 10 Jul 2001 11:27:23 -0400


Matthew Almond wrote:

> tal:define="users here/getUsers | nothing; string modules/string"
> tal:content="python:test(users ==
> None,lambda:'',lambda:string.join(users,'\n'))()"


Yoiks!  Easier than that:

tal:content="python:test(users, string.join(users, '\n'), '')"

Cheers,

Evan @ digicool