本文整理汇总了Python中lib.cpelist.CPEList类的典型用法代码示例。如果您正苦于以下问题:Python CPEList类的具体用法?Python CPEList怎么用?Python CPEList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CPEList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: updateWhitelist
def updateWhitelist(cpeOld, cpeNew, cpeType):
oList = CPEList(collection, args)
return oList.update(cpeOld, cpeNew, cpeType)
示例2: insertWhitelist
def insertWhitelist(cpe, cpeType):
oList = CPEList(collection, args)
return oList.insert(cpe,cpeType)
示例3: removeWhitelist
def removeWhitelist(cpe):
oList = CPEList(collection, args)
return oList.remove(cpe)
示例4: countWhitelist
def countWhitelist():
oList = CPEList(collection, args)
return oList.countItems()
示例5: checkWhitelist
def checkWhitelist(cpe):
oList = CPEList(collection, args)
amount = oList.check(cpe)
return amount
示例6: exportWhitelist
def exportWhitelist(exportFile=None):
oList = CPEList(collection, args)
return oList.exportList(exportFile)
示例7: dropWhitelist
def dropWhitelist():
oList = CPEList(collection, args)
oList.dropCollection()
示例8: importWhitelist
def importWhitelist(importFile):
oList = CPEList(collection, args)
return oList.importList(importFile)
示例9: removeBlacklist
def removeBlacklist(cpe):
oList = CPEList(collection, args)
return oList.remove(cpe)
示例10: exportWhitelist
def exportWhitelist(exportFile):
oList = CPEList(collection, args)
oList.exportList(exportFile)
示例11: countBlacklist
def countBlacklist():
oList = CPEList(collection, args)
return oList.countItems()
示例12: dropBlacklist
def dropBlacklist():
oList = CPEList(collection, args)
oList.dropCollection()
示例13: exportBlacklist
def exportBlacklist(exportFile):
oList = CPEList(collection, args)
oList.exportList(exportFile)
示例14: importBlacklist
def importBlacklist(importFile):
oList = CPEList(collection, args)
oList.importList(importFile)
示例15: updateBlacklist
def updateBlacklist(cpeOld, cpeNew):
oList = CPEList(collection, args)
return oList.update(cpeOld, cpeNew)