l.b.e._.DebBugs(ExternalBugTracker) : class documentation

Part of lp.bugs.externalbugtracker View In Hierarchy

A class that deals with communications with a debbugs db.
Method __init__ Undocumented
Method getCurrentDBTime See IExternalBugTracker.
Method initializeRemoteBugDB See ExternalBugTracker.
Method convertRemoteImportance See ExternalBugTracker.
Method convertRemoteStatus Convert a debbugs status to a Malone status.
Method getRemoteImportance See ExternalBugTracker.
Method getRemoteStatus See ExternalBugTracker.
Method getBugReporter See ISupportsBugImport.
Method getBugTargetName See ISupportsBugImport.
Method getBugSummaryAndDescription See ISupportsBugImport.
Method getCommentIds See ISupportsCommentImport.
Method fetchComments See ISupportsCommentImport.
Method getPosterForComment See ISupportsCommentImport.
Method getMessageForComment See ISupportsCommentImport.
Method addRemoteComment Push a comment to the remote DebBugs instance.
Method getRemoteProduct Return the remote product for a bug.
Method _findBug Undocumented
Method _loadLog Load the debbugs comment log for a given bug.
Method _getDateForComment Return the correct date for a comment.
def __init__(self, baseurl, db_location=None):
Undocumented
def getCurrentDBTime(self):
See IExternalBugTracker.
def initializeRemoteBugDB(self, bug_ids):
See ExternalBugTracker.

This method is overridden (and left empty) here to avoid breakage when the continuous bug-watch checking spec is implemented.

def convertRemoteImportance(self, remote_importance):
See ExternalBugTracker.

This method is implemented here as a stub to ensure that existing functionality is preserved. As a result, BugTaskImportance.UNKNOWN will always be returned.

def convertRemoteStatus(self, remote_status):
Convert a debbugs status to a Malone status.

A debbugs status consists of either two or three parts, separated with space; the status and severity, followed by optional tags. The tags are also separated with a space character.

def _findBug(self, bug_id):
Undocumented
def _loadLog(self, debian_bug):
Load the debbugs comment log for a given bug.

This method is analogous to _findBug() in that if the comment log cannot be loaded from the main database it will attempt to load the log from the archive database.

If no comment log can be found, a debbugs.LogParseFailed error will be raised.

def getRemoteImportance(self, bug_id):
See ExternalBugTracker.

This method is implemented here as a stub to ensure that existing functionality is preserved. As a result, UNKNOWN_REMOTE_IMPORTANCE will always be returned.

def getRemoteStatus(self, bug_id):
See ExternalBugTracker.
def getBugReporter(self, remote_bug):
See ISupportsBugImport.
def getBugTargetName(self, remote_bug):
See ISupportsBugImport.
def getBugSummaryAndDescription(self, remote_bug):
See ISupportsBugImport.
def getCommentIds(self, remote_bug_id):
See ISupportsCommentImport.
def fetchComments(self, remote_bug_id, comment_ids):
See ISupportsCommentImport.
def getPosterForComment(self, remote_bug_id, comment_id):
See ISupportsCommentImport.
def _getDateForComment(self, parsed_comment):
Return the correct date for a comment.
Parametersparsed_commentAn email.message.Message instance containing a parsed DebBugs comment.
ReturnsThe correct date to use for the comment contained in parsed_comment. If a date is specified in a Received header on parsed_comment that we can use, return that. Otherwise, return the Date field of parsed_comment.
def getMessageForComment(self, remote_bug_id, comment_id, poster):
See ISupportsCommentImport.
@ensure_no_transaction
def addRemoteComment(self, remote_bug, comment_body, rfc822msgid):
Push a comment to the remote DebBugs instance.

See ISupportsCommentPushing.

def getRemoteProduct(self, remote_bug):
Return the remote product for a bug.

See IExternalBugTracker.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.