[Zope] HOw to use a tal:condition

Michael Fischer v. Mollard mfvm@businessvillage.de
Wed, 21 Aug 2002 19:57:46 +0200


zope wrote:

>Hi All
>
>I wanted to ask about how to use the tal:condition exactly
>
>I am trying:
><div tal:condition="request.form['txtPL'] == 'john' or nothing"
>tal:replace="request.form['txtPL']">
> List
></div>
>  
>
>...
>tal:condition check for a variable existing in request.
>The problem arises in doing the check :
>                   request.form['txtPL'] == 'john'
>Hoiw can i check this value
>I cant give:
>   request/form/txtPL  == 'john'
>This also thorws an error.
>
>  
>

I'm not shure whether I understand the full issue, but I suppose you 
want to write

<div tal:condition="python: request.form['txtPL'] == 'john' or nothing"

MfG
	MFvM