[Zope] ZODBC and dictionaties

Julian Melville jmelville@selectaustralasia.com.au
Wed, 2 Oct 2002 14:17:42 +1000


> yep that sucks, i do something like this to get dicts
> (probably wildly  inefficient):

What happens if you just treat the result set as a list of dicts? I've just
been blindly using them in this way and it seems to work (this is with
ZODBCDA against MSSQL 7.0):

  results = container.some_sql_query()
  for row in results:
      print row['id'], row['some_field']
  return printed

Julian.