[Zope] TAL: test() or condition Howto?

Paul Winkler pw_lists@slinkp.com
Fri, 31 Jan 2003 14:21:16 -0800


On Fri, Jan 31, 2003 at 09:29:47PM +0100, Dieter Maurer wrote:

> When you know that "myMethod()" cannot return a Python false
> value, you can use
> 
>          ...
> 	 tal:content="python myCond and myMethod() or default"


hmm, ok, I see the difference. In this expression,
you might consider "" to be valid output from myMethod(), or not.
It's a problem if you do.
 
-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's THE LECTRO ACTUATOR!
(random hero from isometric.spaceninja.com)