Example #1
0
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]
Example #2
0
def silence_add(tool):
    dba = dbadmin()
    dba.db_exec("insert into silence (tool) values (\"%s\")" % tool)
    print "%s silenced" % tool
Example #3
0
def purge_db_admin():
    dba = dbadmin()
    dba.db_purge()
    time.sleep(1)
    dba.db_fill_tables()
    print "Admin database purged"
Example #4
0
def silence_del(tool):
    dba = dbadmin()
    dba.db_exec("delete from silence where tool=\"%s\"" % tool)
    print "%s unsilenced" % tool