[Zope-Checkins] SVN: Zope/trunk/lib/python/ZODB/Connection.py
Collector #1514: ZODB 3.3 failure when accessing the Debug info
Tim Peters
tim.one at comcast.net
Thu Sep 30 12:20:30 EDT 2004
Log message for revision 27712:
Collector #1514: ZODB 3.3 failure when accessing the Debug info
Restored the ._opened attribute of Connection. Don't know why it went away
in 3.3. Probably because it was only referenced by connectionDebugInfo(),
and Jeremy didn't realize anyone used that <wink>.
Changed:
U Zope/trunk/lib/python/ZODB/Connection.py
-=-
Modified: Zope/trunk/lib/python/ZODB/Connection.py
===================================================================
--- Zope/trunk/lib/python/ZODB/Connection.py 2004-09-30 15:08:17 UTC (rev 27711)
+++ Zope/trunk/lib/python/ZODB/Connection.py 2004-09-30 16:20:29 UTC (rev 27712)
@@ -178,6 +178,7 @@
self._log = logging.getLogger("ZODB.Connection")
self._storage = None
self._debug_info = ()
+ self._opened = None # time.time() when DB.open() opened us
self._version = version
self._cache = cache = PickleCache(self, cache_size)
@@ -434,6 +435,7 @@
self._storage = odb._storage
self._sortKey = odb._storage.sortKey
self.new_oid = odb._storage.new_oid
+ self._opened = time()
if synch is not None:
self._synch = synch
if mvcc is not None:
@@ -569,6 +571,7 @@
self.__onCloseCallbacks = None
self._storage = self._tmp = self.new_oid = None
self._debug_info = ()
+ self._opened = None
# Return the connection to the pool.
if self._db is not None:
if self._synch:
More information about the Zope-Checkins
mailing list