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