l.b.i.w.ICveSet(Interface) : interface documentation

Part of lp.bugs.interfaces.webservice View In Hierarchy

The set of ICve objects.
Attribute title Title
Method __getitem__ Get a Cve by sequence number.
Method __iter__ Iterate through all the Cve records.
Method new Create a new ICve.
Method getAll Return all ICVEs
Method latest Return the most recently created CVE's, newest first, up to the
Method latest_modified Return the most recently modified CVE's, newest first, up to the
Method search Search the CVE database for matching CVE entries.
Method inText Find one or more Cve's by analysing the given text.
Method inMessage Find any CVE's in the given message.
Method getBugCvesForBugTasks Return (Bug, Cve) tuples that correspond to the supplied bugtasks.
Method getBugCveCount Return the number of CVE bug links there is in Launchpad.
title =
Title
def __getitem__(key):
Get a Cve by sequence number.
def __iter__():
Iterate through all the Cve records.
def new(sequence, description, cvestate=CveStatus.CANDIDATE):
Create a new ICve.
@collection_default_content()
def getAll():
Return all ICVEs
def latest(quantity=5):
Return the most recently created CVE's, newest first, up to the number given in quantity.
def latest_modified(quantity=5):
Return the most recently modified CVE's, newest first, up to the number given in quantity.
def search(text):
Search the CVE database for matching CVE entries.
def inText(text):
Find one or more Cve's by analysing the given text.

This will look for references to CVE or CAN numbers, and return the CVE references. It will create any CVE's that it sees which are already not in the database. It returns the list of all the CVE's it found in the text.

def inMessage(msg):
Find any CVE's in the given message.

This will create any CVE's that it does not already know about. It returns a list of all the CVE's that it saw mentioned in the message.

def getBugCvesForBugTasks(bugtasks, cve_mapper=None):
Return (Bug, Cve) tuples that correspond to the supplied bugtasks.

Returns an iterable of (Bug, Cve) tuples for bugs related to the supplied sequence of bugtasks.

If a function cve_mapper is specified, a sequence of tuples (bug, cve_mapper(cve)) is returned.

def getBugCveCount():
Return the number of CVE bug links there is in Launchpad.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.