Index: /main/waeup.kofa/trunk/src/waeup/kofa/maintenance.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/maintenance.py	(revision 8417)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/maintenance.py	(revision 8417)
@@ -0,0 +1,27 @@
+"""Helpers for maintainers of kofa sites.
+
+XXX: This stuff might go into a separate package, but right
+     now it is too less for a complete package.
+"""
+import sys
+from ZODB.scripts.analyze import report, analyze
+
+def db_analyze(args=None):
+    """Run the analyze tool from ZODB package.
+    """
+    if args is None:
+        args = sys.argv[1:]
+
+    path = None
+    if len(args) > 0:
+        path = args[0]
+    else:
+        print
+        print "Analyze a ZODB file and print statistics"
+        print "about contained objects, sizes, etc."
+        print
+        print "Usage: %s <path-to-Data.fs>" % sys.argv[0]
+        print
+        sys.exit(0)
+
+    report(analyze(path))
