Re: [Zope] Zope Recordset Object

2006-06-16 Thread Andrew Milton
+---[ 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

Re: [Zope] Zope Recordset Object

2006-06-16 Thread Jonathan
- Original Message - From: Alric Aneron [EMAIL PROTECTED] To: zope@zope.org Sent: Friday, June 16, 2006 10:19 AM Subject: [Zope] Zope Recordset Object 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

Re: [Zope] Zope Recordset Object

2006-06-16 Thread jpenny
http://mail.zope.org/pipermail/zope-dev/1999-September/001414.html 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 res[i][n2i['column_name']] jim Hello,