Part of lp.bugs.tests.externalbugtracker View In Hierarchy
| Method | expireCookie | Mark the cookie as expired. |
| Method | auth_cookie | Undocumented |
| Method | has_valid_auth_cookie | Undocumented |
| Method | request | Call the corresponding XML-RPC method. |
| Method | bugtracker_version | Return the bug tracker version information. |
| Method | time_snapshot | Return the current time. |
| Method | utc_time | Return the current UTC time for this bug tracker. |
| Method | bug_info | Return info about a bug or set of bugs. |
| Method | get_comments | Return a list of comment dicts. |
| Method | add_comment | Add a comment to a bug. |
| Method | get_launchpad_bug | Get the Launchpad bug ID for a given remote bug. |
| Method | set_launchpad_bug | Set the Launchpad bug ID for a remote bug. |
Inherited from RequestsTransport:
| Method | __init__ | Undocumented |
| Method | setCookie | Set a cookie for the transport to use in future connections. |
The method name and arguments are extracted from request. The
method on this class with the same name as the XML-RPC method is
called, with the extracted arguments passed on to it.
Return info about a bug or set of bugs.
:param level: The level of detail to return about the bugs
requested. This can be one of:
0: Return IDs only.
1: Return Metadata only.
2: Return Metadata + comment IDs.
3: Return all data about each bug.
:param criteria: The selection criteria by which bugs will be
returned. Possible keys include:
modified_since: An integer timestamp. If specified, only
bugs modified since this timestamp will
be returned.
bugs: A list of bug IDs. If specified, only bugs whose IDs are in
this list will be returned.
Return a list of [ts, bugs] where ts is a utc timestamp as
returned by `time_snapshot()` and bugs is a list of bug dicts.
| Parameters | comments | The IDs of the comments to return. Comments that don't exist will be returned with a type value of 'missing'. |
| Parameters | bugid | The integer ID of the bug to which the comment should be added. |
| comment | The comment to be added as a string. |
The remote bug to Launchpad bug mappings are stored in the launchpad_bugs dict.
If bugid references a remote bug that doesn't exist, raise a
Fault.
If a remote bug doesn't have a Launchpad bug mapped to it, return 0. Otherwise return the mapped Launchpad bug ID.