[Qgis-user] obscurate DB password from .qgs project
Jürgen E. Fischer
jef at norbit.de
Fri Nov 16 11:09:15 PST 2012
Hi Giovanni,
On Fri, 16. Nov 2012 at 20:03:29 +0100, G. Allegri wrote:
> Yes Jurgen, I'm setting connections through code. I'm not in front of the
> PC, but I suppose it's possible to set this option through the data
> provider api, isn't it?
It uses QgsCredentials for that and could use QgsCredentials::put() to feed it
the credentials before you add the layer.
Jürgen
--
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
committ(ed|ing) to Quantum GIS IRC: jef on FreeNode
--
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