[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5091 - trunk/gnue-common/src/datasources
From: |
reinhard |
Subject: |
r5091 - trunk/gnue-common/src/datasources |
Date: |
Tue, 10 Feb 2004 17:54:18 -0600 (CST) |
Author: reinhard
Date: 2004-02-10 17:54:17 -0600 (Tue, 10 Feb 2004)
New Revision: 5091
Modified:
trunk/gnue-common/src/datasources/GConnections.py
Log:
Fixed closeAll, implemented commitAll.
Modified: trunk/gnue-common/src/datasources/GConnections.py
===================================================================
--- trunk/gnue-common/src/datasources/GConnections.py 2004-02-10 12:43:53 UTC
(rev 5090)
+++ trunk/gnue-common/src/datasources/GConnections.py 2004-02-10 23:54:17 UTC
(rev 5091)
@@ -456,16 +456,20 @@
return None
+ def commitAll(self):
+ """
+ This function commits all transactions
+ """
+ for connection in self._openConnections.values ():
+ connection.commit()
+
+
def closeAll(self):
"""
This function closes all open connections.
"""
- for connection in self._openConnections:
- try:
- self._openConnections[connection].close()
- except Error:
- pass
-
+ for connection in self._openConnections.values ():
+ connection.close()
self._openConnections = {}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5091 - trunk/gnue-common/src/datasources,
reinhard <=