[Zope] Zope Recordset Object

Andrew Milton akm at theinternet.com.au
Fri Jun 16 10:28:39 EDT 2006


+-------[ Alric Aneron ]----------------------
| Hello,
| I have a ZSQL Method, which is called by my python
| script.
| However, I am curious as to what type of object is
| returned when that call is made.
| It's some sort of a recordset (or resultset) object
| that behaves like a list...it doesn't seem to be a
| dictionary object though, but I can't find any object
| reference on it.  I tried using rs.keys() but it says
| that method doesn't exist in that class.
| Does anyone have a member function list (object
| reference ) that's associated with this resultset or
| can tell me what kind of object is returned?
| I gave up on google, couldn't find anything on it. 

It's a 'Result' class;

looking ${ZOPE}/lib/python/Shared/DC/ZRDB/Results.py

Quickly;

.dictionaries() will return it as a list of dicts
.names() will return the field list


-- 
Andrew Milton
akm at theinternet.com.au


More information about the Zope mailing list