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
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
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?
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
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