[Zope3-checkins] CVS: Zope3/src/zope/app/applicationcontrol -
zodbcontrol.py:1.2
Jim Fulton
cvs-admin at zope.org
Tue Nov 25 10:55:30 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/applicationcontrol
In directory cvs.zope.org:/tmp/cvs-serv4364/src/zope/app/applicationcontrol
Modified Files:
zodbcontrol.py
Log Message:
Disabled attempt to get database size. ZODB4 doesn't provide
an api. Theee previous attempt to get the size was brittle in
a number of ways.
=== Zope3/src/zope/app/applicationcontrol/zodbcontrol.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/applicationcontrol/zodbcontrol.py:1.1 Thu Jul 31 17:37:18 2003
+++ Zope3/src/zope/app/applicationcontrol/zodbcontrol.py Tue Nov 25 10:55:28 2003
@@ -30,7 +30,13 @@
def getDatabaseSize(self, db):
"""See zope.app.interfaces.applicationControl.IZODBControl"""
- return os.path.getsize(db._storage._file_name)
+ """See zope.app.interfaces.applicationControl.IZODBControl"""
+ # XXX ZODB 4 doesn't support getting the database size
+ # the original implementation (commnted out) depended on internal
+ # file-storage implementation details.
+
+ # return os.path.getsize(db._storage._file_name)
+ return 0
def pack(self, db, days):
"""See zope.app.interfaces.applicationControl.IZODBControl"""
More information about the Zope3-Checkins
mailing list