21 Aug
2002
21 Aug
'02
5:57 p.m.
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