[mod_python] Why can't psycopg2 beta adapt this:

Daniel J. Popowich dpopowich at comcast.net
Fri Dec 9 18:09:51 EST 2005


Scott Chapman writes:
> >   3. Are you still using mpservlets? (you were at one time)
> >      ...
> 
> You've got a good memory Daniel!  I took what I wanted of mpservlets and made my 
> own mod_python handler from it.

It's easy to remember all three of you!  :-)

> Here's the fix action:
> 
> import psycopg2
> import psycopg2.extras
> import psycopg2.extensions
> import mod_python
> 
> psycopg2.extensions.register_adapter(mod_python.util.StringField, 
> psycopg2.extensions.QuotedString)

Thanks for the tip...I'll file that away.

-d


More information about the Mod_python mailing list