One postgres-specific change we made to our copy of gluon.sql to make
things a bit easier was to add the import

    import psycopg2.extras

and change the line

            self._pool_connection(lambda : psycopg2.connect(msg))
to
            self._pool_connection(lambda :
psycopg2.extras.DictConnection(msg))

This causes each cursor to be a DictCursor instance, which returns
results that can be accessed either by key or integer index. Perhaps
this would be a more useful (but still backward compatible) default?

--David

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to