How to make DictCursor the default cursor with psycopg2+twisted?

Nathan <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
In my small python scripts, I usually use DictCursors like this:

curs = db.cursor(cursor_factory = psycopg2.extras.DictCursor)

Now I'd like to do the same thing using Twisted, but you only pass db
connection parameters and sql query paramaters through Twisted to
psycopg, while Twisted handles everything else (including cursors)
itself.

Is there a way to globally configure psycopg2 so that it used
psycopg2.extras.DictCursor by default?

~ Nathan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.