[Zope] ZODBC and dictionaties
Chris Withers
chrisw@nipltd.com
Wed, 25 Sep 2002 13:51:28 +0100
Meilicke, Scott wrote:
> See:
>
> http://lists.zope.org/pipermail/zpt/2001-December/002553.html
>
> For example code on converting your zsql method results to a dictionary.
Urm, I prefer my implementation:
def recs2lod(recset, names=None):
return recset.dictionaries
;-)
but then again, you don't even really need to do that, as an example:
for rec in recset:
print rec['myrecord']
print getattr(rec,'myrecord')
cheers,
Chris