Hello,
I'm working with a Python application that is using SQLObject to connect
to Postgres. However, we need the connection from Python to the
Postgres DB to be over SSL.
It looks like the Postgres Python driver has an "sslmode" that can be
set [1]. However, I'm having difficulty seeing how that could be set
through the PostgresConnection [2]. I have a Java background rather
than a Python background, so that may be part of the problem.
I think the connection is being created like this:
connectionForURI("postgresql://cu...@localhost/cumin").getConnection()
Is it possible for me to add something like listed in [1] to make the DB
connection over SSL? I tried
postgresql://cu...@localhost/cumin?[sslmode]=require, but that doesn't
seem to work.
[1]
http://python.projects.postgresql.org/docs/1.0/driver.html#connection-keywords
[2]
http://svn.colorstudy.com/SQLObject/trunk/sqlobject/postgres/pgconnection.py
Thanks!
Aaron Pestel
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss