The only auxiliary structure I ever use is names, i.e.
n2i = {}
res = container.foo_zsql()
nms = res.names()
for i in range(len(nms)):
  n2i[nms[i]] = i

Then I can address by name as in


> 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 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. 
> Thank you in advance!

Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to