lib/gettor/utils.py
def addBlacklistEntry(conf, address):
    """Add an entry to the global blacklist
    """
    logging.debug("Adding address to blacklist: %s" % address)
    blStateDir = conf.BASEDIR + "/bl"
    try:
        blackList = gettor.blacklist.BWList(blStateDir)
    except IOError, e:
        logging.error("Blacklist error: %s" % e)
        return False
    if not blackList.createListEntry(normalizeAddress(address), "general"):
        logging.error("Creating blacklist entry failed.")
        return False
    else:
        logging.debug("Creating whitelist entry ok.")
        return True
Add an entry to the global blacklist
    
Add an entry to the global blacklist
Add an entry to the global blacklist
def addBlacklistEntry(conf, address):
    logging.debug("Adding address to blacklist: %s" % address)
    blStateDir = conf.BASEDIR + "/bl"
    try:
        blackList = gettor.blacklist.BWList(blStateDir)
    except IOError, e:
        logging.error("Blacklist error: %s" % e)
        return False
    if not blackList.createListEntry(normalizeAddress(address), "general"):
        logging.error("Creating blacklist entry failed.")
        return False
    else:
        logging.debug("Creating whitelist entry ok.")
        return True
def addBlacklistEntry ( conf , address ) : logging . debug ( "Adding address to blacklist: %s" % address ) blStateDir = conf . BASEDIR + "/bl" try : blackList = gettor . blacklist . BWList ( blStateDir ) except IOError , e : logging . error ( "Blacklist error: %s" % e ) return False if not blackList . createListEntry ( normalizeAddress ( address ) , "general" ) : logging . error ( "Creating blacklist entry failed." ) return False else : logging . debug ( "Creating whitelist entry ok." ) return True
Add an entry to the global blacklist
Add an entry to the global blacklist
"""Add an entry to the global blacklist
    """
conf
address