[Zope] TALES expression

Garito garito at sistes.net
Wed Jul 16 05:06:31 EDT 2008


If this assuption is correct why the result is <div class="DataPrevista" />?

2008/7/16 Martijn Jacobs <martijn at fourdigits.nl>:

>  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
> tal interpreter evaluates the second one and the result of this TALES
> expression will be nosta as string
>
> Is this assumption correct?
>
> Thanks!
>
> 2008/7/16 Martijn Jacobs <martijn at fourdigits.nl>:
>
>>
>>  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 <div>None</div>
>>>
>>> Then the first one will render the alternate expression isn't it?
>>>
>>> Then with it renders <div class="DataPrevista" /> ?
>>>
>>> Thanks!
>>>
>>
>>  I don't understand what you are asking. Could you describe your question
>> more clear please.
>>
>>
>> Martijn.
>>
>> --
>> Martijn Jacobs
>> Four Digits, Internet Solutions
>>
>> a: Willemsplein 15-1 6811 KB Arnhem NL kvk: 091621370000 | btw:
>> 8161.22.234.B01
>> e-mail: martijn at fourdigits.nl | web: http://www.fourdigits.nl
>> tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117
>>
>
>
>
> --
> Mis Cosas
> http://blogs.sistes.net/Garito
> Zope Smart Manager
> http://blogs.sistes.net/Garito/670
>
>
>
> --
> Martijn Jacobs
> Four Digits, Internet Solutions
>
> a: Willemsplein 15-1 6811 KB Arnhem NL
> kvk: 091621370000 | btw: 8161.22.234.B01
> e-mail: martijn at fourdigits.nl | web: http://www.fourdigits.nl
> tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117
>
>


-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20080716/c3e2cdad/attachment.html


More information about the Zope mailing list