[Zope-Checkins] CVS: Products/DCOracle2 - DABase.py:1.7.2.2

Chris Withers chris at simplistix.co.uk
Wed Feb 25 18:17:39 EST 2004


Update of /cvs-repository/Products/DCOracle2
In directory cvs.zope.org:/tmp/cvs-serv32561

Modified Files:
      Tag: chrisw_fixconnectionleak_branch
	DABase.py 
Log Message:
Made compatible with newer Connection.py


=== Products/DCOracle2/DABase.py 1.7.2.1 => 1.7.2.2 ===
--- Products/DCOracle2/DABase.py:1.7.2.1	Tue Nov  4 16:46:58 2003
+++ Products/DCOracle2/DABase.py	Wed Feb 25 18:17:38 2004
@@ -121,7 +121,7 @@
 
         return result
 
-    def manage_close_connection(self,REQUEST):
+    def manage_close_connection(self,REQUEST=None):
         """Close all connections for our connection string"""
         # do the normal stuff
         Shared.DC.ZRDB.Connection.Connection.manage_close_connection(
@@ -131,8 +131,8 @@
         # empty the pool for our connection string
         connections.close(self.connection_string)
 
-
-        return self.manage_main(self, REQUEST)
+        if REQUEST is not None:
+            return self.manage_main(self, REQUEST)
     
     def edit(self, title, connection_string, check=1):
         # release our connection if we have one




More information about the Zope-Checkins mailing list