R: [Zope] ZSQL "OR" search help

Dieter Maurer dieter@handshake.de
Tue, 17 Jul 2001 23:22:36 +0200 (CEST)


Fabrizio writes:
 > This is my Zsql method's DTML:
 > 
 > select * from presidents
 >           where <dtml-sqltest name type=string multiple>
 > 
 > I am using it just from Zope's "test" tab.
 > 
 > How do I input a list of names ?
 > Where should I add the :list suffix ?
It may be that the ":list" suffix does not work (it is known
to be broken at least for some Zope versions and some contexts). Try:

   DTML-object

   <dtml-call "REQUEST.set('name',['john', 'bill', 'george'])">
   <dtml-in zsql>
     ....
   </dtml-in>




Dieter