Exemplo n.º 1
0
def removeWhitelist(cpe):
    oList = CPEList(collection, args)
    return oList.remove(cpe)
Exemplo n.º 2
0
def updateWhitelist(cpeOld, cpeNew):
    oList = CPEList(collection, args)
    return oList.update(cpeOld, cpeNew)
Exemplo n.º 3
0
def checkWhitelist(cpe):
    oList = CPEList(collection, args)
    amount = oList.check(cpe)
    return amount
Exemplo n.º 4
0
def insertWhitelist(cpe):
    oList = CPEList(collection, args)
    return oList.insert(cpe)
Exemplo n.º 5
0
def dropWhitelist():
    oList = CPEList(collection, args)
    oList.dropCollection()
Exemplo n.º 6
0
def countWhitelist():
    oList = CPEList(collection, args)
    return oList.countItems()
Exemplo n.º 7
0
def importWhitelist(importFile):
    oList = CPEList(collection, args)
    oList.importList(importFile)
Exemplo n.º 8
0
def exportWhitelist(exportFile):
    oList = CPEList(collection, args)
    oList.exportList(exportFile)
Exemplo n.º 9
0
def removeBlacklist(cpe):
    oList = CPEList(collection, args)
    return oList.remove(cpe)
Exemplo n.º 10
0
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()
Exemplo n.º 11
0
def insertBlacklist(cpe):
    oList = CPEList(collection, args)
    return oList.insert(cpe)
Exemplo n.º 12
0
def countBlacklist():
    oList = CPEList(collection, args)
    return oList.countItems()
Exemplo n.º 13
0
def dropBlacklist():
    oList = CPEList(collection, args)
    oList.dropCollection()
Exemplo n.º 14
0
def exportBlacklist(exportFile):
    oList = CPEList(collection, args)
    oList.exportList(exportFile)
Exemplo n.º 15
0
def importBlacklist(importFile):
    oList = CPEList(collection, args)
    oList.importList(importFile)