[z3-checkins] r5431 - z3/sqlos/trunk
spiv at codespeak.net
spiv at codespeak.net
Mon Jul 5 07:59:18 MEST 2004
Author: spiv
Date: Mon Jul 5 07:59:17 2004
New Revision: 5431
Modified:
z3/sqlos/trunk/connection.py
Log:
Work with Zope3 HEAD -- use Interface.__call__ for nameless adaption
Modified: z3/sqlos/trunk/connection.py
==============================================================================
--- z3/sqlos/trunk/connection.py (original)
+++ z3/sqlos/trunk/connection.py Mon Jul 5 07:59:17 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] = zapi.getAdapter(newconn(), IZopeSQLConnection)
+ connCache[key] = IZopeSQLConnection(newconn())
return connCache[name]
def releaseConnection(name):
@@ -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] = zapi.getAdapter(newconn(), IZopeSQLConnection)
+ connCache[key] = IZopeSQLConnection(newconn())
return connCache[key]
def releaseConnection(name):
More information about the z3-checkins
mailing list