Part of lp.bugs.externalbugtracker View In Hierarchy
Method | __init__ | Undocumented |
Method | getExternalBugTrackerToUse | See IExternalBugTracker . |
Method | getCurrentDBTime | See IExternalBugTracker . |
Method | getModifiedRemoteBugs | See IExternalBugTracker . |
Method | initializeRemoteBugDB | See IExternalBugTracker . |
Method | getRemoteBug | Retrieve and return a single bug from the remote database. |
Method | getRemoteBugBatch | Retrieve and return a set of bugs from the remote database. |
Method | getRemoteImportance | Return the remote importance for the given bug id. |
Method | getRemoteStatus | Return the remote status for the given bug id. |
Method | getRemoteProduct | Return the remote product for a given bug. |
Method | makeRequest | Make a request. |
Method | _getHeaders | Undocumented |
Method | _getPage | GET the specified page on the remote HTTP server. |
Method | _postPage | POST to the specified page and form. |
The bug is returned as a tuple in the form (id, bug). This ensures that bug ids are formatted correctly for the current ExternalBugTracker. If no data can be found for bug_id, (None, None) will be returned.
A BugTrackerConnectError will be raised if anything goes wrong.
A BugTrackerConnectError will be raised if anything goes wrong.
Raise BugNotFound if the bug can't be found. Raise InvalidBugId if the bug id has an unexpected format. Raise UnparsableBugData if the bug data cannot be parsed.
Raise BugNotFound if the bug can't be found. Raise InvalidBugId if the bug id has an unexpected format.
See IExternalBugTracker
.
Parameters | method | The HTTP request method. |
url | The URL to request. | |
Returns | A requests.Response object. | |
Raises | requests.RequestException | if the request fails. |
Returns | A requests.Response object. |
Parameters | form | is a dict of form variables being POSTed. |
repost_on_redirect | override RFC-compliant redirect handling.
By default, if the POST receives a redirect response, the
request to the redirection's target URL will be a GET. If
repost_on_redirect is True, this method will do a second POST
instead. Do this only if you are sure that repeated POST to
this page is safe, as is usually the case with search forms. | |
Returns | A requests.Response object. |