l.b.i.w.IBugWatch(IHasBug) : interface documentation

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

A bug on a remote system.
Int id Undocumented
Attribute activity The activity history of this BugWatch.
Attribute needscheck A True or False indicator of whether or not this watch needs to be synchronised. The algorithm used considers the severity of the bug, as well as the activity on the bug, to ensure that we spend most effort on high-importance and high-activity bugs.
Attribute unpushed_comments A set of comments on this BugWatch that need to be pushed to the remote bug tracker.
Attribute can_be_rescheduled A True or False indicator of whether or not this watch can be rescheduled.
Method updateImportance Update the importance of the bug watch and any linked bug task.
Method updateStatus Update the status of the bug watch and any linked bug task.
Method destroySelf Delete this bug watch.
Method hasComment Return True if a comment has been imported for the BugWatch.
Method addComment Link and imported comment to the BugWatch.
Method getBugMessages Return all the `IBugMessage`s that reference this BugWatch.
Method getImportedBugMessages Return all the `IBugMessage`s that have been imported.
Method addActivity Add an IBugWatchActivity record for this BugWatch.
Method setNextCheck Set the next_check time of the watch.
Method reset Completely reset the watch.

Inherited from IHasBug:

Int bug Undocumented
id =
Undocumented
activity =
The activity history of this BugWatch.
needscheck =
A True or False indicator of whether or not this watch needs to be synchronised. The algorithm used considers the severity of the bug, as well as the activity on the bug, to ensure that we spend most effort on high-importance and high-activity bugs.
unpushed_comments =
A set of comments on this BugWatch that need to be pushed to the remote bug tracker.
can_be_rescheduled =
A True or False indicator of whether or not this watch can be rescheduled.
def updateImportance(remote_importance, malone_importance):
Update the importance of the bug watch and any linked bug task.

The lastchanged attribute gets set to the current time.

def updateStatus(remote_status, malone_status):
Update the status of the bug watch and any linked bug task.

The lastchanged attribute gets set to the current time.

def destroySelf():
Delete this bug watch.
def hasComment(comment_id):
Return True if a comment has been imported for the BugWatch.

If the comment has not been imported, return False.

Parameterscomment_idThe remote ID of the comment.
def addComment(comment_id, message):
Link and imported comment to the BugWatch.
Parameterscomment_idThe remote ID of the comment.
messageThe imported comment as a Launchpad Message object.
def getBugMessages(clauses):
Return all the `IBugMessage`s that reference this BugWatch.

:param clauses: A iterable of Storm clauses to limit the messages.
def getImportedBugMessages():
Return all the `IBugMessage`s that have been imported.
def addActivity(result=None, message=None, oops_id=None):
Add an IBugWatchActivity record for this BugWatch.
def setNextCheck(next_check):
Set the next_check time of the watch.
RaisesBugWatchCannotBeRescheduled if IBugWatch.can_be_rescheduled is False.
def reset():

Completely reset the watch.

When called, the following attributes are reset:
  • last_error_type -> None
  • lastchanged -> None
  • lastchecked -> None
  • nextcheck -> now
  • remoteimportance -> None
  • remotestatus -> None
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.