def silence_list(): print "Tools Silenced" print "--------------" dba = dbadmin() a = dba.db_exec("select tool from silence", passthrough=True) for line in a: print line[0]
def silence_add(tool): dba = dbadmin() dba.db_exec("insert into silence (tool) values (\"%s\")" % tool) print "%s silenced" % tool
def purge_db_admin(): dba = dbadmin() dba.db_purge() time.sleep(1) dba.db_fill_tables() print "Admin database purged"
def silence_del(tool): dba = dbadmin() dba.db_exec("delete from silence where tool=\"%s\"" % tool) print "%s unsilenced" % tool