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