[Zope] tal expression

Andreas Jung lists at andreas-jung.com
Thu Nov 4 03:22:11 EST 2004

--On Donnerstag, 4. November 2004 9:09 Uhr +0100 Garito <garito at sistes.net> 

> Hi
> will these be possible?
> <tal:b tal:define='dictionary python: {"value1": ["one", "two", "three"],
> "value2": "two", "value3": "three"}'>
>     <tal:b tal:replace='python: dictionary["value1"][5] | "Value not
> available"' />
> </tal:b>
> Obviously these is an incorrect tal expression (the replace one) but
> there are any way to create an expression like these and correct?

Please look at the Python Dictionary API, especially the has_key() or get() 


More information about the Zope mailing list