"""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 " % sys.argv[0] print sys.exit(0) report(analyze(path))