[ZPT] Re: Using ZPT Varibles

Ian Bicking ianb at colorstudy.com
Thu Jul 8 13:36:26 EDT 2004


Will Smith wrote:
>> ZPT also has special syntax for just this:
>>
>> "errors/name | nothing"
>>
> 
> how could you make that work with a string
> 
> <div tal:define="foo string:bar">
>   <p tal:content="errors/$foo | nothing">  --??
> </div>

Ah... as far as I know, in that case you'll have to do 
python:errors.get(foo, None).

-- 
Ian Bicking  /  ianb at colorstudy.com  /  http://blog.ianbicking.org


More information about the ZPT mailing list