[Zope] ZPT newbie question

Dieter Maurer dieter@handshake.de
Thu, 8 Aug 2002 21:39:43 +0200


Mark McEahern writes:
 > > How do I do the following in ZPT please?
 > > 
 > > <dtml-if "REQUEST.has_key('nofile')">
 > > Please enter a file name by browsing your system
 > > </dtml-if>
 > 
 > Try something like this:
 > 
 >   <span tal:omit-tag="" tal:condition="REQUEST/has_key('nofile')">
Correct is:

     <span tal:condition="python: request.has_key('nofile')"> ... </span>


Dieter