b.p.l.l.LaunchpadService(object) : class documentation

Part of bzrlib.plugins.launchpad.lp_registration View In Hierarchy

Known subclasses: bzrlib.plugins.launchpad.lp_registration.DryRunLaunchpadService, bzrlib.plugins.launchpad.test_register.MockLaunchpadService

A service to talk to Launchpad via XMLRPC.

See http://wiki.bazaar.canonical.com/Specs/LaunchpadRpc for the methods we can call.

Method __init__ Construct a new service talking to the launchpad rpc server
Method service_url Return the http or https url for the xmlrpc server.
Class Method for_url Return the Launchpad service corresponding to the given URL.
Method get_proxy Return the proxy for XMLRPC requests.
Method gather_user_credentials Get the password from the user.
Method send_request Undocumented
Method domain Undocumented
Method get_web_url_from_branch_url Get the Launchpad web URL for the given branch URL.
Method _guess_branch_path Undocumented
def __init__(self, transport=None, lp_instance=None):
Construct a new service talking to the launchpad rpc server
@property
def service_url(self):
Return the http or https url for the xmlrpc server.

This does not include the username/password credentials.

@classmethod
def for_url(cls, url, **kwargs):
Return the Launchpad service corresponding to the given URL.
def get_proxy(self, authenticated):
Return the proxy for XMLRPC requests.
def gather_user_credentials(self):
Get the password from the user.
def send_request(self, method_name, method_params, authenticated):
Undocumented
@property
def domain(self):
Undocumented
def _guess_branch_path(self, branch_url, _request_factory=None):
Undocumented
def get_web_url_from_branch_url(self, branch_url, _request_factory=None):
Get the Launchpad web URL for the given branch URL.
ReturnsThe URL of the branch on Launchpad.
Raiseserrors.InvalidURLif 'branch_url' cannot be identified as a Launchpad branch URL.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.