def _cmd(args): dbi = DBMgr.getInstance() dbi.startRequest() c = Client() if args.command == "clear_spool": print "%s operations removed" % c.clearSpool() dbi.endRequest()