[Qgis-user] QgsDataSourceURI.setConnection() error

Jürgen E. Fischer jef at norbit.de
Mon Apr 6 02:41:42 PDT 2009


Hi Horst,

On Mon, 06. Apr 2009 at 10:56:41 +0200, Düster Horst wrote:
> ...
> uri = QgsDataSourceURI()
> uri.setConnection(self.DBHOST, self.DBPORT, self.DBNAME, self.DBUSER,
> self.DBPASSWD)
> ...
> 
> Unfortunately QGIS throws the following Python error message:
> Error:
> uri.setConnection(self.DBHOST, self.DBPORT, self.DBNAME, self.DBUSER,
> self.DBPASSWD)
> TypeError: insufficient number of arguments to QgsDataSourceURI.setConnection()

There's an additional parameter sslmode in 1.1, but I made that optional
in r10482.


Jürgen

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-20
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502




More information about the Qgis-user mailing list