[Zope] question about forms and zsql

Tim Wilson wilson@isis.visi.com
Tue, 12 Feb 2002 10:32:45 -0600 (CST)


On Tue, 12 Feb 2002, Robert Hood, Ph.D. wrote:

> In sql you can use LIKE %name% to let people search more flexibly.
> 
> So how do I pass the %name% from the form to the method?  Do I make the 
> change to the form, or to the zsql method?

You might find my How-To "Combining ZSQL Methods With Python Scripts"
helpful. It's at
http://www.zope.org/Members/TWilson/ZSQL_and_Python_Scripts

I think you'll find that a little Python Script is the way to go when
you want to start splitting the form input and searching for matches.

-Tim

--
Tim Wilson      |   Visit Sibley online:   | Check out:
Henry Sibley HS |  http://www.isd197.org   | http://www.zope.com
W. St. Paul, MN |                          | http://slashdot.org
wilson@visi.com |  <dtml-var pithy_quote>  | http://linux.com