[Zope-DB] Access database without ZSQL

Arthur Yip Arthur Yip" <arthuryip@arthuryip.com
Mon, 28 Oct 2002 19:21:34 -0800


Hi,

I'm new to Zope.  Not sure whether it is possible to access a database
without ZSQL in Zope.

I'm using PostgreSQL and Zope on Windows XP.  I have successfully make a Z
Psycopg Database Connection in Zope.  However, when I tried to write a
script like this:

import psycopg
db = psycopg.connect("dbname=cvp user=webuser password=foo host=127.0.0.1")
db.close()
return ""

The DSN is the same as the one I use in Z Psycopg Database Connection.

Whenever I run this script, the web browser prompt the authentication dialog
ask for username and password.  Did I do something wrong?

Regards,
Arthur