commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/gnue-common/src/dbdrivers/pypgsql DBdriver.py


From: Jason Cater
Subject: gnue/gnue-common/src/dbdrivers/pypgsql DBdriver.py
Date: Sat, 10 Nov 2001 18:55:46 -0500

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    01/11/10 18:55:45

Modified files:
        gnue-common/src/dbdrivers/pypgsql: DBdriver.py 

Log message:
        login fix (inconsistent Windows login issue)

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/src/dbdrivers/pypgsql/DBdriver.py.diff?cvsroot=OldCVS&tr1=1.8&tr2=1.9&r1=text&r2=text

Patches:
Index: gnue/gnue-common/src/dbdrivers/pypgsql/DBdriver.py
diff -u gnue/gnue-common/src/dbdrivers/pypgsql/DBdriver.py:1.8 
gnue/gnue-common/src/dbdrivers/pypgsql/DBdriver.py:1.9
--- gnue/gnue-common/src/dbdrivers/pypgsql/DBdriver.py:1.8      Sat Nov 10 
17:01:43 2001
+++ gnue/gnue-common/src/dbdrivers/pypgsql/DBdriver.py  Sat Nov 10 18:55:45 2001
@@ -8,7 +8,7 @@
 #
 # GNU Enterprise is distributed in the hope that it will be 
 # useful, but WITHOUT ANY WARRANTY; without even the implied 
-# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 # PURPOSE. See the GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public 
@@ -58,14 +58,17 @@
   def connect(self, connectData={}):
     GDebug.printMesg(1,"Postgresql database driver initializing")
     try:
-      GDebug.printMesg(1,'Connect user=%s password=%s host=%s dbname=%s' % \
-                                          (connectData['_username'], 
connectData['_password'], connectData['host'], connectData['dbname']))
-      #self._dataConnection = PgSQL.connect('user=%s password=%s host=%s 
dbname=%s' %
-      #                                    (connectData['_username'], 
connectData['_password'], connectData['host'], connectData['dbname']))
-      self._dataConnection = 
PgSQL.connect(user=connectData['_username'],password=connectData['_password'],
-                                          host=connectData['host'], 
database=connectData['dbname'])
+      self._dataConnection = PgSQL.connect("%s::%s:%s:%s::" % \
+             (connectData['host'],
+              connectData['dbname'],
+              connectData['_username'],
+              connectData['_password']))
       self.triggerExtensions = TriggerExtensions(self._dataConnection)
     except self._DatabaseError, value:
+      GDebug.printMesg(1,PgSQL.connect("%s::%s:%s:***::" % \
+             (connectData['host'],
+              connectData['dbname'],
+              connectData['_username'])))
       GDebug.printMesg(1,"Exception %s " % value)
       raise GDataObjects.LoginError, value
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]