[ZPT] Re: Using ZPT Varibles

Will Smith witisi at yahoo.com
Thu Jul 8 12:15:52 EDT 2004


Ian Bicking wrote:

> Will Smith wrote:
> 
>>>  I guess I am looking for something like the 
>>> context.REQUEST.get('name', None) 
>>
>>
>>
>> Hmm, good idea.....Sorry I guess I answered my own queston.
>>
>> error python:errors.get(fieldName, None)
> 
> 
> 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>



More information about the ZPT mailing list