Received: from dns.bemarnet.es (dns.bemarnet.es [212.87.192.226]) by hub.org (8.10.1/8.10.1) with SMTP id e7472VG18352 for ; Fri, 4 Aug 2000 03:02:31 -0400 (EDT) Received: (qmail 17256 invoked from network); 4 Aug 2000 07:02:25 -0000 Received: from server.bemarnet.es (HELO hera) (212.87.192.187) by dns.bemarnet.es with SMTP; 4 Aug 2000 07:02:25 -0000 Message-Id: <4.1.20000804085946.00ca5f00@pop3.bemarnet.es> X-Sender: antonio%bemarnet.es@pop3.bemarnet.es X-Mailer: QUALCOMM Windows Eudora Pro Versión 4.1 Date: Fri, 04 Aug 2000 09:01:47 +0200 To: pgsql-interfaces@hub.org From: Antonio Navarro Navarro Subject: Re: Python + PostgreSQL Cc: darcy@druid.net In-Reply-To: References: <4.1.20000802123207.00c22a20@pop3.bemarnet.es> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200008/42 At 10.05 3/8/00 -0400, darcy@druid.net (D'Arcy J.M. Cain) wrote: >Thus spake Antonio Navarro Navarro >> I have installed postgresql-python-7.0.2-2.i386.rpm in a RedHat 6.2 box. >> Where can I find documentation for this module ? I'm trying to connect to a >> server but the python says 'no password supplied' >> >> import pg >> >> dg = pg.connect("template1", "localhost", 5432) > >If the server requires a password then you need to supply one here. If >you don't need a password (i.e. "psql template1" works) then try this. Hi again ! How must I add the password to the call , maybe dg = pg.connect("template1", "10.0.0.1", 5432,"username", "password") ? and where could I find documentation for the different functions supplied in the package ? Regards, Antonio Navarro Navarro BemarNet Management http://www.bemarnet.es hostmaster@bemarnet.es Tlf. +34-96-1656644 Fax. +34-96-1656514