[Checkins] SVN: zc.z3monitor/trunk/src/zc/z3monitor/ Fixed a bug in the access path to get at cache info.

Jim Fulton jim at zope.com
Thu Nov 15 16:06:11 EST 2007


Log message for revision 81858:
  Fixed a bug in the access path to get at cache info.
  

Changed:
  U   zc.z3monitor/trunk/src/zc/z3monitor/__init__.py
  U   zc.z3monitor/trunk/src/zc/z3monitor/tests.py

-=-
Modified: zc.z3monitor/trunk/src/zc/z3monitor/__init__.py
===================================================================
--- zc.z3monitor/trunk/src/zc/z3monitor/__init__.py	2007-11-15 21:06:08 UTC (rev 81857)
+++ zc.z3monitor/trunk/src/zc/z3monitor/__init__.py	2007-11-15 21:06:10 UTC (rev 81858)
@@ -12,8 +12,6 @@
 #
 ##############################################################################
 """Zope 3 Monitor Server
-
-$Id$
 """
 
 import os, re, time, traceback
@@ -122,7 +120,7 @@
 
     def command_zeocache(self, connection, database=''):
         db = zope.component.getUtility(ZODB.interfaces.IDatabase, database)
-        stats = db._storage._cache.getStats()
+        stats = db._storage._cache.fc.getStats()
         print >> connection, ' '.join(map(str, stats))
         
 

Modified: zc.z3monitor/trunk/src/zc/z3monitor/tests.py
===================================================================
--- zc.z3monitor/trunk/src/zc/z3monitor/tests.py	2007-11-15 21:06:08 UTC (rev 81857)
+++ zc.z3monitor/trunk/src/zc/z3monitor/tests.py	2007-11-15 21:06:10 UTC (rev 81858)
@@ -20,6 +20,10 @@
 
 class FauxCache:
 
+    @property
+    def fc(self):
+        return self
+
     def getStats(self):
         return 42, 4200, 23, 2300, 1000
 



More information about the Checkins mailing list