[z3-checkins] r6862 - z3/sqlos/trunk

spiv at codespeak.net spiv at codespeak.net
Wed Oct 6 17:15:11 MEST 2004


Author: spiv
Date: Wed Oct  6 17:15:11 2004
New Revision: 6862

Modified:
   z3/sqlos/trunk/connection.py
Log:
Fix trivial bug in getConnection when threads aren't available.


Modified: z3/sqlos/trunk/connection.py
==============================================================================
--- z3/sqlos/trunk/connection.py	(original)
+++ z3/sqlos/trunk/connection.py	Wed Oct  6 17:15:11 2004
@@ -69,7 +69,7 @@
                 warnings.warn("Couldn't find a rdb connection by the "
                               "name %s. Please verify your setup." % name,
                               SQLObjectWarning, 3)
-            connCache[key] = IZopeSQLConnection(newconn())
+            connCache[name] = IZopeSQLConnection(newconn())
         return connCache[name]
 
     def releaseConnection(name):


More information about the z3-checkins mailing list