[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7157 - trunk/gnue-common/src/datasources/drivers/DBSIG2
From: |
reinhard |
Subject: |
[gnue] r7157 - trunk/gnue-common/src/datasources/drivers/DBSIG2 |
Date: |
Thu, 10 Mar 2005 13:44:28 -0600 (CST) |
Author: reinhard
Date: 2005-03-10 13:44:27 -0600 (Thu, 10 Mar 2005)
New Revision: 7157
Modified:
trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
Log:
Further code cleanup.
Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
2005-03-10 19:27:02 UTC (rev 7156)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
2005-03-10 19:44:27 UTC (rev 7157)
@@ -70,6 +70,17 @@
# ---------------------------------------------------------------------------
+ # Constructor
+ # ---------------------------------------------------------------------------
+
+ def __init__ (self, connections, name, parameters):
+
+ Base.Connection.__init__ (self, connections, name, parameter)
+
+ # FIXME: Should be private
+ self.native = None
+
+ # ---------------------------------------------------------------------------
# Convert type into what the DBSIG2 driver wants as parameter
# ---------------------------------------------------------------------------
@@ -344,7 +355,7 @@
def _commit (self):
try:
self.native.commit ()
- except self._DatabaseError, value:
+ except self._driver.DatabaseError:
raise Exceptions.ConnectionError, errors.getException () [2]
# ---------------------------------------------------------------------------
@@ -359,5 +370,5 @@
# ---------------------------------------------------------------------------
def _close (self):
- if hasattr (self, 'native') and self.native is not None:
+ if self.native:
self.native.close ()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7157 - trunk/gnue-common/src/datasources/drivers/DBSIG2,
reinhard <=