[Zope-CVS] CVS: Products/DBTab - CHANGES.txt:1.7 Mount.py:1.5
Shane Hathaway
shane@zope.com
Sat, 15 Mar 2003 20:54:05 -0500
Update of /cvs-repository/Products/DBTab
In directory cvs.zope.org:/tmp/cvs-serv17464
Modified Files:
CHANGES.txt Mount.py
Log Message:
Fixed activity monitoring for mounted databases. No info was being recorded.
=== Products/DBTab/CHANGES.txt 1.6 => 1.7 ===
--- Products/DBTab/CHANGES.txt:1.6 Sat Mar 15 20:29:25 2003
+++ Products/DBTab/CHANGES.txt Sat Mar 15 20:54:04 2003
@@ -1,5 +1,7 @@
-Next release (1.2?)
+Next release (1.1.1?)
+
+ - Fixed activity monitoring for mounted databases.
- Removed import of AdaptableStorage. Argument converters now work
when you specify the full module of a storage class.
=== Products/DBTab/Mount.py 1.4 => 1.5 ===
--- Products/DBTab/Mount.py:1.4 Thu Feb 6 15:30:18 2003
+++ Products/DBTab/Mount.py Sat Mar 15 20:54:04 2003
@@ -184,6 +184,13 @@
conns = self._mounted_connections
if conns:
for conn in conns.values():
+ # Notify the activity monitor
+ db = conn.db()
+ f = getattr(db, 'getActivityMonitor', None)
+ if f is not None:
+ am = f()
+ if am is not None:
+ am.closedConnection(conn)
conn._incrgc() # This is a good time to do some GC
# XXX maybe we ought to call the close callbacks.
conn._storage = conn._tmp = conn.new_oid = conn._opened = None