<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html;">
<title>Scalix message content</title>
<style type="text/css">
<!--
.Normal {  text-align: left; text-indent:0pt; margin-top:0pt; margin-bottom:0pt; font-family: Arial; font-size: 12pt; }
.Default_Paragraph_Font {font-family: Arial; color: Black; background-color: white ; font-size: 12pt; font-weight: normal;  font-style: normal; font-variant: normal; vertical-align: normal; text-decoration: none;}
div.ltTOCtitle { font-family: Verdana; font-size: 8pt; font-weight: bold; text-align: center;}
div.ltTOCl1 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:32pt; text-indent:-32pt;}
div.ltTOCl2 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:40pt; text-indent:-32pt;}
div.ltTOCl3 {  font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:48pt; text-indent:-32pt;}
div.ltTOCl4 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:56pt; text-indent:-32pt;}
div.ltTOCl5 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:64pt; text-indent:-32pt;}
div.ltTOCl6 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:72pt; text-indent:-32pt;}
-->
</style>
</head>

<body>
<div class="Normal"><span style='font-size: 10pt; '>Hi Jürgen</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Thank you for your response
and the fix fix. The API Documentation should be updated too.</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Regards</span><br><span style='font-size: 10pt; '>Horst</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>------------------------------------------------</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Dr. Horst
Düster</span><br><span style='font-size: 10pt; '>Stv. Amtschef /
GIS-Koordinator </span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Kanton
Solothurn</span><br><span style='font-size: 10pt; '>Bau- und
Justizdepartement</span><br><span style='font-size: 10pt; '>Amt für
Geoinformation</span><br><span style='font-size: 10pt; '>SO!GIS
Koordination</span><br><span style='font-size: 10pt; '>Rötistrasse
4</span><br><span style='font-size: 10pt; '>CH-4501 Solothurn</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Telefon ++41(0)32 627 25
32</span><br><span style='font-size: 10pt; '>Telefax ++41(0)32 627 22
14</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>mailto:horst.duester@bd.so.ch</span><br><span style='font-size: 10pt; '>http://www.agi.so.ch</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>-----Ursprüngliche
Nachricht-----</span><br><span style='font-size: 10pt; '>Von: Jürgen E.
Fischer
[mailto:jef@norbit.de]</span><br><span style='font-size: 10pt; '>Gesendet am:
Montag, 6. April 2009 11:42</span><br><span style='font-size: 10pt; '>An:
Düster Horst</span><br><span style='font-size: 10pt; '>Cc:
qgis-user</span><br><span style='font-size: 10pt; '>Betreff: Re: [Qgis-user]
QgsDataSourceURI.setConnection() error</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Hi Horst,</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>On Mon, 06. Apr 2009 at
10:56:41 +0200, Düster Horst
wrote:</span><br><span style='font-size: 10pt; '>>
...</span><br><span style='font-size: 10pt; '>> uri =
QgsDataSourceURI()</span><br><span style='font-size: 10pt; '>>
uri.setConnection(self.DBHOST, self.DBPORT, self.DBNAME,
self.DBUSER,</span><br><span style='font-size: 10pt; '>>
self.DBPASSWD)</span><br><span style='font-size: 10pt; '>>
...</span><br><span style='font-size: 10pt; '>>
</span><br><span style='font-size: 10pt; '>> Unfortunately QGIS throws the
following Python error message:</span><br><span style='font-size: 10pt; '>>
Error:</span><br><span style='font-size: 10pt; '>>
uri.setConnection(self.DBHOST, self.DBPORT, self.DBNAME,
self.DBUSER,</span><br><span style='font-size: 10pt; '>>
self.DBPASSWD)</span><br><span style='font-size: 10pt; '>> TypeError:
insufficient number of arguments to
QgsDataSourceURI.setConnection()</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>There's an additional
parameter sslmode in 1.1, but I made that
optional</span><br><span style='font-size: 10pt; '>in r10482.</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Jürgen</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>--
</span><br><span style='font-size: 10pt; '>Jürgen E. Fischer         norBIT
GmbH               Tel.
+49-4931-918175-20</span><br><span style='font-size: 10pt; '>Dipl.-Inf. (FH)    
Rheinstraße 13            Fax.
+49-4931-918175-50</span><br><span style='font-size: 10pt; '>Software Engineer  
D-26506 Norden               http://www.norbit.de</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>--
</span><br><span style='font-size: 10pt; '>norBIT Gesellschaft fuer
Unternehmensberatung und Informationssysteme
mbH</span><br><span style='font-size: 10pt; '>Rheinstrasse 13, 26506
Norden</span><br><span style='font-size: 10pt; '>GF: Jelto Buurman, HR:
Amtsgericht Emden, HRB 5502</span></div>
<br>



</body>

</html>