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 . |
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/']
Parameters | uri | The base URI to be used to identify the bug tracker, e.g. http://bugs.example.com or mailto:bugs@example.com |
Parameters | uri | The base URI to be used to identify the bug tracker, e.g. http://bugs.example.com or mailto:bugs@example.com |