[Zope-DB] Accessing ZSQL Method results from Python Script

Paul Browning paul.browning@bristol.ac.uk
Fri, 26 Apr 2002 13:11:27 +0100 (GMT Daylight Time)


On Fri, 26 Apr 2002 10:53:30 +0000 (GMT) =?ISO-8859-1?Q?Juli=E1n_Mu=F1oz?= 
<jmunoz@telefonica.net> wrote:

> This is explained in the zope book
> 
> I think it is :
> 
> retvalue=container.call_zsql()
> 
> retvalue[0].colname
> 
> Where 0 is the line number
> colname is the name of the column

Thanks! I haven't found the Zope Book reference yet but
searching on zsql uncovered 

http://www.zope.org/Members/spinwing/ZSQL_Results
http://www.zope.org/Members/jpenny/Accessing_a_ZSQL_Method_from_an_External_Method
http://www.zope.org/Members/teyc/howtoSQLVariables

which I think are going to give me the leg up I needed.

Thanks.

Paul

--
 The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK
     E-mail: paul.browning@bristol.ac.uk  URL: http://www.bris.ac.uk/