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

Part of lp.bugs.externalbugtracker View In Hierarchy

Known subclasses: lp.bugs.externalbugtracker.bugzilla.BugzillaAPI

An ExternalBugTracker for dealing with remote Bugzilla systems.
Method __init__ Undocumented
Method getExternalBugTrackerToUse Return the correct Bugzilla subclass for the current bugtracker.
Method convertRemoteImportance See ExternalBugTracker.
Method convertRemoteStatus See IExternalBugTracker.
Method initializeRemoteBugDB See ExternalBugTracker.
Method getRemoteBug See ExternalBugTracker.
Method getRemoteBugBatch See ExternalBugTracker.
Method getRemoteImportance See ExternalBugTracker.
Method getRemoteStatus See ExternalBugTracker.
Method getRemoteProduct See IExternalBugTracker.
Method _remoteSystemHasBugzillaAPI Return True if the remote host offers the Bugzilla API.
Method _remoteSystemHasPluginAPI Return True if the remote host has the Launchpad plugin installed.
Method _parseDOMString Return a minidom instance representing the XML contents supplied
Method _probe_version Retrieve and return a remote bugzilla version.
Method _parseVersion Return a Bugzilla version parsed into a tuple.
Method _checkBugSearchResult Does document appear to be a bug search result page?
def __init__(self, baseurl, version=None):
Undocumented
@ensure_no_transaction
def _remoteSystemHasBugzillaAPI(self):
Return True if the remote host offers the Bugzilla API.
ReturnsTrue if the remote host offers an XML-RPC API and its version is >= 3.4. Return False otherwise.
@ensure_no_transaction
def _remoteSystemHasPluginAPI(self):
Return True if the remote host has the Launchpad plugin installed.
def getExternalBugTrackerToUse(self):
Return the correct Bugzilla subclass for the current bugtracker.

See IExternalBugTracker.

def _parseDOMString(self, contents):
Return a minidom instance representing the XML contents supplied
def _probe_version(self):
Retrieve and return a remote bugzilla version.

If the version cannot be parsed from the remote server UnparsableBugTrackerVersion will be raised. If the remote server cannot be reached BugTrackerConnectError will be raised.

def _parseVersion(self, version):
Return a Bugzilla version parsed into a tuple.

A typical tuple will be in the form (major_version, minor_version), so the version string '2.15' would be returned as (2, 15).

If the passed version is None, None will be returned. If the version cannot be parsed UnparsableBugTrackerVersion will be raised.

def convertRemoteImportance(self, remote_importance):
See ExternalBugTracker.
def convertRemoteStatus(self, remote_status):
See IExternalBugTracker.

Bugzilla status consist of two parts separated by space, where the last part is the resolution. The resolution is optional.

def initializeRemoteBugDB(self, bug_ids):
See ExternalBugTracker.

This method is overridden so that Bugzilla version issues can be accounted for.

def getRemoteBug(self, bug_id):
See ExternalBugTracker.
def _checkBugSearchResult(self, document):
Does document appear to be a bug search result page?
ParametersdocumentAn xml.dom.Document built from a bug search result on the bugzilla instance.
RaisesUnparsableBugDataIf document does not appear to be a bug search result.
def getRemoteBugBatch(self, bug_ids):
See ExternalBugTracker.
def getRemoteImportance(self, bug_id):
See ExternalBugTracker.
def getRemoteStatus(self, bug_id):
See ExternalBugTracker.
def getRemoteProduct(self, remote_bug):
See IExternalBugTracker.
API Documentation for Launchpad, generated by pydoctor at 2019-10-20 00:00:13.