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

Part of lp.bugs.externalbugtracker View In Hierarchy

Known subclasses: lp.bugs.externalbugtracker.trac.TracLPPlugin

An ExternalBugTracker instance for handling Trac bugtrackers.
Method getExternalBugTrackerToUse See IExternalBugTracker.
Method supportsSingleExports Return True if the Trac instance provides CSV exports for single
Method getRemoteBug See ExternalBugTracker.
Method getRemoteBugBatch See ExternalBugTracker.
Method initializeRemoteBugDB See ExternalBugTracker.
Method getRemoteImportance See ExternalBugTracker.
Method getRemoteStatus Return the remote status for the given bug id.
Method convertRemoteImportance See ExternalBugTracker.
Method convertRemoteStatus See IExternalBugTracker
Method _fetchBugData Retrieve the CSV bug data from a URL and return it.
def getExternalBugTrackerToUse(self):
See IExternalBugTracker.
def supportsSingleExports(self, bug_ids):
Return True if the Trac instance provides CSV exports for single tickets, False otherwise.
Unknown Field: bug_idsA list of bug IDs that we can use for discovery purposes.
def _fetchBugData(self, query_url):
Retrieve the CSV bug data from a URL and return it.
Parametersquery_urlThe URL from which to retrieve the CSV bug data.
ReturnsA list of dicts, with each dict representing a single row in the CSV data retrieved from query_url.
def getRemoteBug(self, bug_id):
See ExternalBugTracker.
def getRemoteBugBatch(self, bug_ids):
See ExternalBugTracker.
def initializeRemoteBugDB(self, bug_ids):
See ExternalBugTracker.

This method overrides ExternalBugTracker.initializeRemoteBugDB() so that the remote Trac instance's support for single ticket exports can be taken into account.

If the URL specified for the bugtracker is not valid a BugTrackerConnectError 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):
Return the remote status for the given bug id.

Raise BugNotFound if the bug can't be found. Raise InvalidBugId if the bug id has an unexpected format.

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):
See IExternalBugTracker
API Documentation for Launchpad, generated by pydoctor at 2020-02-29 00:00:08.