lib/gettor/blacklist.py
def removeListEntry(self, address, blacklistName="*"):
        """Remove an entry from the black- or whitelist
        """
        if address is None:
           logging.error("Argument 'address' is None")
           return False
        hashString = self.getHash(address)
        globPath = os.path.join(self.blacklistDir, blacklistName)
        hashVec = glob.glob(os.path.join(globPath, hashString))
        for entry in hashVec:
            try:
                logging.info("Unlinking %s" % entry)
                os.unlink(entry)
            except OSError:
                logging.error("Could not unlink entry %s" % entry)
                continue
        else:
            logging.info("Requested removal of non-existing entry. Abord.")
            return False
Remove an entry from the black- or whitelist
        
Remove an entry from the black- or whitelist
Remove an entry from the black - or whitelist
def removeListEntry(self, address, blacklistName="*"):
        if address is None:
           logging.error("Argument 'address' is None")
           return False
        hashString = self.getHash(address)
        globPath = os.path.join(self.blacklistDir, blacklistName)
        hashVec = glob.glob(os.path.join(globPath, hashString))
        for entry in hashVec:
            try:
                logging.info("Unlinking %s" % entry)
                os.unlink(entry)
            except OSError:
                logging.error("Could not unlink entry %s" % entry)
                continue
        else:
            logging.info("Requested removal of non-existing entry. Abord.")
            return False
def removeListEntry ( self , address , blacklistName = "*" ) : if address is None : logging . error ( "Argument 'address' is None" ) return False hashString = self . getHash ( address ) globPath = os . path . join ( self . blacklistDir , blacklistName ) hashVec = glob . glob ( os . path . join ( globPath , hashString ) ) for entry in hashVec : try : logging . info ( "Unlinking %s" % entry ) os . unlink ( entry ) except OSError : logging . error ( "Could not unlink entry %s" % entry ) continue else : logging . info ( "Requested removal of non-existing entry. Abord." ) return False
Remove an entry from the black- or whitelist
Remove an entry from the black - or whitelist
"""Remove an entry from the black- or whitelist
        """
self
address
blacklistName