[Zope] 2Q: Catalog and REQUEST

Dieter Maurer dieter@handshake.de
Wed, 17 Jan 2001 23:34:56 +0100 (CET)


alan runyan writes:
 > for key in REQUEST['form'].keys():
"form" is an attribute (!) of REQUEST, not a key:

   for key in REQUEST.form.keys():

 > second question:  I have some searchResults()
 > when I say
 > <dtml-in searchResult><dtml-var sequence-item></dtml-in> (when are we going
 > to get rid of sequence-item?)
 > I get
 > instance
 > None
 > instance
 > ....

 > but <dtml-in searchResults>
 >         <dtml-if "_['sequence-item']!=None">
Do you get a NameError None?
You need (probably, depending what type of objects you
"searchResult" returns) "_.None".


Dieter