[Zope] accessing sql methods from scripts

Ben Avery ben@thesite.org
Tue, 22 Oct 2002 11:22:39 +0100


hi keo,

this how-to from Spinwing explains and walks you through it nicely and 
gently :)
http://www.zope.org/Members/spinwing/ZSQL_Results

ben


keo wrote:
> hi,
> 
> i have ran into a little problem, how can i use the reslults that an sql
> gave me back?
> 
> i have: context.sqlChkRow()
> this returns some data, which says <Shared.DC.ZRDB.Results.Results
> instance at 0x8cd875c> ... i made a list() from it ..
> 
> then i got: <r instance at 8cda3d8>
> 
> what type of object is z sql method returning?
> 
> im new to python, i dont know what can i do with these ...
> 
> how do i print out an object's members? or how do i get some dump of it?
> 
> how can i find out what methods it has?
> 
> 
> thanks,
> 
> k
> --
> don't believe everything you think
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>