[Zope-DB] page not found error while connecting

Yves Bastide Yves.Bastide@irisa.fr
Fri, 06 Dec 2002 14:51:02 +0100

Chason Hayes wrote:
> pg_hba.conf is ok. No messages at all from postgres. I will try to use 
> idle and the zope installation of python to manually connect to 
> postgres. Does anyone know how to do this?

Untested, to do on the command line:
c:\> cd %your_zope_home%
c:\your_zope_home> bin\python
 >>> import psycopg
 >>> conn=psycopg.connect("dbname=mydatabase hostname=myhost")

(if psycopg.pyd is not in the PYTHONPATH, you'll have to add it ot 
sys.path, naturally)

Hope this helps,