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

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

Encapsulate how to find the latest publication for a given project.
Method __init__ Undocumented
Method get_latest_version Get the latest published version for the given package.
Method place Text-form for what location this represents.
Method _setup_series_and_pocket Parse the 'series' info into a series and a pocket.
Method _archive_URL Return the Launchpad 'Archive' URL that we will query.
Method _publication_status Handle the 'status' field.
Method _query_params Get the parameters defining our query.
Method _query_URL Create the full URL that we need to query, including parameters.
Method _get_lp_info Place an actual HTTP query against the Launchpad service.
Method _parse_json_info Parse the json response from Launchpad into objects.
def __init__(self, archive, series, project):
Undocumented
def _setup_series_and_pocket(self, series):
Parse the 'series' info into a series and a pocket.

eg::
    _setup_series_and_pocket('natty-proposed')
    => _series == 'natty'
       _pocket == 'Proposed'
def _archive_URL(self):
Return the Launchpad 'Archive' URL that we will query. This is everything in the URL except the query parameters.
def _publication_status(self):
Handle the 'status' field. It seems that Launchpad tracks all 'debian' packages as 'Pending', while for 'ubuntu' we care about the 'Published' packages.
def _query_params(self):
Get the parameters defining our query. This defines the actions we are making against the archive. :return: A dict of query parameters.
def _query_URL(self):
Create the full URL that we need to query, including parameters.
def _get_lp_info(self):
Place an actual HTTP query against the Launchpad service.
def _parse_json_info(self, json_info):
Parse the json response from Launchpad into objects.
def get_latest_version(self):
Get the latest published version for the given package.
def place(self):
Text-form for what location this represents.

Example::
    ubuntu, natty => Ubuntu Natty
    ubuntu, natty-proposed => Ubuntu Natty Proposed
:return: A string representing the location we are checking.
API Documentation for Bazaar, generated by pydoctor at 2019-07-22 00:30:44.