Re: [Zope] TALES expression

2008-07-16 Thread Martijn Jacobs
Hi! Please consider this TALES expression: div class=DataPrevista tal:content='here/getDataInici | string: nosta' / If I try this other: div tal:content='string:${here/getDataInici}' / the result is divNone/div Then the first one will render the alternate expression isn't it? Then with

Re: [Zope] TALES expression

2008-07-16 Thread Garito
If this assuption is correct why the result is div class=DataPrevista /? 2008/7/16 Martijn Jacobs [EMAIL PROTECTED]: That assumption is correct I mean some TALES expression as here/getDataInici | string: nosta will evaluate here/getDataInici and if this expression returns '', 0 or None the

Re: [Zope] TALES expression

2008-07-16 Thread Tino Wildenhain
Garito wrote: Hi! Please consider this TALES expression: div class=DataPrevista tal:content='here/getDataInici | string: nosta' / If I try this other: div tal:content='string:${here/getDataInici}' / the result is divNone/div Then the first one will render the alternate expression isn't it?

Re: [Zope] TALES expression

2008-07-16 Thread Fred Drake
On Wed, Jul 16, 2008 at 6:34 AM, Tino Wildenhain [EMAIL PROTECTED] wrote: You should check the tales documentation. the pipe symbol | means a logical or, in effect if the left expression resolves to non existent, None, empty object,... (generally python False) the right part of it is

Re: [Zope] TALES expression

2008-07-16 Thread Tino Wildenhain
Fred Drake wrote: On Wed, Jul 16, 2008 at 6:34 AM, Tino Wildenhain [EMAIL PROTECTED] wrote: You should check the tales documentation. the pipe symbol | means a logical or, in effect if the left expression resolves to non existent, None, empty object,... (generally python False) the right part