[Zope3-checkins] CVS: Zope3/lib/python/ZODB - DB.py:1.48
Jeremy Hylton
jeremy@zope.com
Wed, 17 Jul 2002 19:00:56 -0400
Update of /cvs-repository/Zope3/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv2570/ZODB
Modified Files:
DB.py
Log Message:
import get_transaction() from Transaction.
Fix bogus line from previous checkin (should return v).
=== Zope3/lib/python/ZODB/DB.py 1.47 => 1.48 ===
from time import time, ctime
from zLOG import LOG, ERROR
+from Transaction import get_transaction
+
from types import StringType
class DB:
@@ -363,7 +365,7 @@
if connections:
v = connections.get(version)
if not (v is None or temporary):
- v
+ return v
else:
transaction._connections = connections = {}
transaction = transaction._connections