results = hub.getConnection().queryAll(query_string)
results will be a list of tuples.
Stuart
On Sat, 2006-11-18 at 01:17 +0000, Matt Wilson wrote:
> So, this is what I'm doing:
>
> conn = model.hub.hub.getConnection
> curs = conn._connection.cursor()
> curs.execute('SOME UNHOLY SQL SELECT')
> results = curs.dictfetchall()
>
> Is there a better way? I must have my results as a list of
> dictionaries.
>
> Matt
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---