l.b.i.b.IBugSet(Interface) : interface documentation

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

A set of bugs.
Method get Get a specific bug by its ID.
Method getByNameOrID Get a specific bug by its ID or nickname
Method createBug Create a bug and return it.
Method getDistinctBugsForBugTasks Return :limit: distinct Bugs for a given set of BugTasks.
Method getByNumbers Get IBug instances identified by the bug_numbers iterable.
Method getBugsWithOutdatedHeat Return the set of bugs whose heat is out of date.
def get(bugid):
Get a specific bug by its ID.

If it can't be found, NotFoundError will be raised.

def getByNameOrID(bugid):
Get a specific bug by its ID or nickname

If it can't be found, NotFoundError will be raised.

def createBug(bug_params, notify_event=True):

Create a bug and return it.

Things to note when using this factory:

  • if no description is passed, the comment will be used as the description
  • the reporter will be subscribed to the bug
  • distribution, product and package contacts (whichever ones are applicable based on the bug report target) will be subscribed to all public bugs only
  • if either product or distribution is specified, an appropiate bug task will be created
Parametersbug_paramsA CreateBugParams object.
notify_eventnotify subscribers of the bug creation event.
Returnsthe new bug, or a tuple of bug, event when notify_event is false.
def getDistinctBugsForBugTasks(bug_tasks, user, limit=10):
Return :limit: distinct Bugs for a given set of BugTasks.
Parametersbug_tasksAn iterable of IBugTasks for which we should return Bugs.
userThe Person getting the list of Bugs. Only Bugs visible to :user: will be returned.
limitThe number of distinct Bugs to return.
def getByNumbers(bug_numbers):
Get IBug instances identified by the bug_numbers iterable.
Parametersbug_numbersAn iterable of bug numbers for which we should return Bugs.
def getBugsWithOutdatedHeat(cutoff):
Return the set of bugs whose heat is out of date.
Parameterscutoffthe oldest that a bug's heat can be before it is considered outdated.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.