[Zope] External Methods and ZSQL

tom@othermedia.com tom@othermedia.com
Mon, 02 Jul 2001 16:13:35 -0000


A few days ago someone posted something about using the 
ZSQL stuff from an extenal method, not calling existing methods 
but building it on the fly. It went kinda like this...

>From Products import SQL

myconn = ZSQL.connect()
mycursor = myconn.cursor
myresults - mycursor.execute("select * from food")
myconn.close()

return myresults

...can anyone poin me to the code (or did I just imagine it?)

thanks

tom