l.b.m.bugtracker : module documentation

Part of lp.bugs.model

No module docstring
Function normalise_leading_slashes Ensure that the 'rest' segment of a URL starts with //.
Function normalise_base_url Convert https to http, and normalise scheme for others.
Function base_url_permutations Return all the possible variants of a base URL.
Function make_bugtracker_name Return a name string for a bug tracker based on a URI.
Function make_bugtracker_title Return a title string for a bug tracker based on a URI.
Class BugTrackerComponent The software component in the remote bug tracker.
Class BugTrackerComponentGroup A collection of components in a remote bug tracker.
Class BugTracker A class to access the BugTracker table in the database.
Class BugTrackerSet Implements IBugTrackerSet for a container or set of BugTrackers,
Class BugTrackerAlias See IBugTrackerAlias.
Class BugTrackerAliasSet See IBugTrackerAliasSet.
def normalise_leading_slashes(rest):
Ensure that the 'rest' segment of a URL starts with //.
def normalise_base_url(base_url):
Convert https to http, and normalise scheme for others.
def base_url_permutations(base_url):

Return all the possible variants of a base URL.

Sometimes the URL ends with slash, sometimes not. Sometimes http is used, sometimes https. This gives a list of all possible variants, so that queryByBaseURL can match a base URL, even if it doesn't match exactly what is stored in the database.

>>> base_url_permutations('http://foo/bar')
['http://foo/bar', 'http://foo/bar/',
 'https://foo/bar', 'https://foo/bar/']
def make_bugtracker_name(uri):
Return a name string for a bug tracker based on a URI.
ParametersuriThe base URI to be used to identify the bug tracker, e.g. http://bugs.example.com or mailto:bugs@example.com
def make_bugtracker_title(uri):
Return a title string for a bug tracker based on a URI.
ParametersuriThe base URI to be used to identify the bug tracker, e.g. http://bugs.example.com or mailto:bugs@example.com
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.