[z3-checkins] r6861 - z3/sqlos/trunk
spiv at codespeak.net
spiv at codespeak.net
Wed Oct 6 17:14:04 MEST 2004
Author: spiv
Date: Wed Oct 6 17:14:03 2004
New Revision: 6861
Modified:
z3/sqlos/trunk/connection.py
Log:
Associate SQLObject Transactions with threads, rather than Connections.
See http://codespeak.net/pipermail/z3-sqlos/2004-October/000024.html for
details.
Modified: z3/sqlos/trunk/connection.py
==============================================================================
--- z3/sqlos/trunk/connection.py (original)
+++ z3/sqlos/trunk/connection.py Wed Oct 6 17:14:03 2004
@@ -90,7 +90,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[key] = IZopeSQLConnection(newconn()).transaction()
return connCache[key]
def releaseConnection(name):
More information about the z3-checkins
mailing list