def removeWhitelist(cpe): oList = CPEList(collection, args) return oList.remove(cpe)
def updateWhitelist(cpeOld, cpeNew): oList = CPEList(collection, args) return oList.update(cpeOld, cpeNew)
def checkWhitelist(cpe): oList = CPEList(collection, args) amount = oList.check(cpe) return amount
def insertWhitelist(cpe): oList = CPEList(collection, args) return oList.insert(cpe)
def dropWhitelist(): oList = CPEList(collection, args) oList.dropCollection()
def countWhitelist(): oList = CPEList(collection, args) return oList.countItems()
def importWhitelist(importFile): oList = CPEList(collection, args) oList.importList(importFile)
def exportWhitelist(exportFile): oList = CPEList(collection, args) oList.exportList(exportFile)
def removeBlacklist(cpe): oList = CPEList(collection, args) return oList.remove(cpe)
def countWhitelist(): oList = CPEList(collection, args) return oList.countItems() def checkWhitelist(cpe): oList = CPEList(collection, args) amount = oList.check(cpe) return amount def insertWhitelist(cpe): oList = CPEList(collection, args) return oList.insert(cpe) def removeWhitelist(cpe): oList = CPEList(collection, args) return oList.remove(cpe) def updateWhitelist(cpeOld, cpeNew): oList = CPEList(collection, args) return oList.update(cpeOld, cpeNew) if __name__ == '__main__': oList = CPEList(collection, args) oList.process()
def insertBlacklist(cpe): oList = CPEList(collection, args) return oList.insert(cpe)
def countBlacklist(): oList = CPEList(collection, args) return oList.countItems()
def dropBlacklist(): oList = CPEList(collection, args) oList.dropCollection()
def exportBlacklist(exportFile): oList = CPEList(collection, args) oList.exportList(exportFile)
def importBlacklist(importFile): oList = CPEList(collection, args) oList.importList(importFile)