lib/gettor/utils.py
def clearWhitelist(conf):
    """Delete all entries in the global whitelist
    """
    wlStateDir = conf.BASEDIR + "/wl"
    try:
        whiteList = gettor.blacklist.BWList(wlStateDir)
    except IOError, e:
        logging.error("Whitelist error: %s" % e)
        return False
    logging.debug("Clearing whitelist..")
    if not whiteList.removeAll():
        logging.error("Deleting whitelist failed.")
        return False
    else:
        logging.debug("Deleting whitelist done.")
        return True
Delete all entries in the global whitelist
    
Delete all entries in the global whitelist
Delete all entries in the global whitelist
def clearWhitelist(conf):
    wlStateDir = conf.BASEDIR + "/wl"
    try:
        whiteList = gettor.blacklist.BWList(wlStateDir)
    except IOError, e:
        logging.error("Whitelist error: %s" % e)
        return False
    logging.debug("Clearing whitelist..")
    if not whiteList.removeAll():
        logging.error("Deleting whitelist failed.")
        return False
    else:
        logging.debug("Deleting whitelist done.")
        return True
def clearWhitelist ( conf ) : wlStateDir = conf . BASEDIR + "/wl" try : whiteList = gettor . blacklist . BWList ( wlStateDir ) except IOError , e : logging . error ( "Whitelist error: %s" % e ) return False logging . debug ( "Clearing whitelist.." ) if not whiteList . removeAll ( ) : logging . error ( "Deleting whitelist failed." ) return False else : logging . debug ( "Deleting whitelist done." ) return True
Delete all entries in the global whitelist
Delete all entries in the global whitelist
"""Delete all entries in the global whitelist
    """
conf