[Zodb-checkins] SVN: ZODB/branches/3.3/ Merge rev 27712 from Zope trunk.

Tim Peters tim.one at comcast.net
Thu Sep 30 15:16:27 EDT 2004


Log message for revision 27717:
  Merge rev 27712 from Zope trunk.
  
  Restore the Connection._opened attribute, actually used by
  DB.connectionDebugInfo().
  


Changed:
  U   ZODB/branches/3.3/NEWS.txt
  U   ZODB/branches/3.3/src/ZODB/Connection.py


-=-
Modified: ZODB/branches/3.3/NEWS.txt
===================================================================
--- ZODB/branches/3.3/NEWS.txt	2004-09-30 17:13:39 UTC (rev 27716)
+++ ZODB/branches/3.3/NEWS.txt	2004-09-30 19:16:27 UTC (rev 27717)
@@ -15,7 +15,12 @@
 The deprecation warning for ``Transaction.begin()`` was changed to
 point to the caller, instead of to ``Transaction.begin()`` itself.
 
+Connection
+----------
 
+Restored Connection's private ``_opened`` attribute.  This was still
+referenced by ``DB.connectionDebugInfo()``, and Zope 2 calls the latter.
+
 What's new in ZODB3 3.3 release candidate 1?
 ============================================
 Release date: 14-Sep-2004

Modified: ZODB/branches/3.3/src/ZODB/Connection.py
===================================================================
--- ZODB/branches/3.3/src/ZODB/Connection.py	2004-09-30 17:13:39 UTC (rev 27716)
+++ ZODB/branches/3.3/src/ZODB/Connection.py	2004-09-30 19:16:27 UTC (rev 27717)
@@ -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 Zodb-checkins mailing list