[ZPT] repeat trick
Evan Simpson
evan@digicool.com
Tue, 10 Jul 2001 13:34:51 -0400
Matthew Almond wrote:
> Okay, I tried some of this out - neither my, or Evans seem to work (though
> mine does work for another similar problem) - The problem is that test()
> evaluates both the true and false part (as it's a function) and even if the
> true part isn't used, it's evaluated.
D'oh! Forgot about that. Try this:
tal:define="users here/getUsers | nothing; string modules/string"
tal:content="python:string.join(users or [],'\n')"
Cheers,
Evan @ digicool