[Zope3-Users] test() in TALES in Zope3

Benji York benji at zope.com
Wed Feb 1 08:27:55 EST 2006


Andreas Jung wrote:
> Frank Burkhardt <fbo2 at gmx.net> wrote:
> 
>> in Zope2 there's a test() method that can be used in TAL (*). Is there
>> something comparable in Zope3?
> 
> You can write this in Python as
> 
>    condition and true_expression or false_expression

In Python 2.5 you'll be able to write

	true_expression if condition else false_expression

-- 
Benji York
Senior Software Engineer
Zope Corporation


More information about the Zope3-users mailing list