/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/lp_api.py

  • Committer: Max Bowsher
  • Date: 2011-02-01 10:23:38 UTC
  • mto: (4797.79.6 2.1)
  • mto: This revision was merged to the branch mainline in revision 5642.
  • Revision ID: maxb@f2s.com-20110201102338-pndv0tbm0ydzumfb
Expand comment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
            installed_version, installed_version)
70
70
 
71
71
 
72
 
# Service root URIs for which we do not have constants are derived from the one
73
 
# constant which does always exist - this is because launchpadlib <= 1.5.4
74
 
# requires service root URIs that end in a path of /beta/, whilst launchpadlib
75
 
# >= 1.5.5 requires service root URIs with no path info.
 
72
# The older versions of launchpadlib only provided service root constants for
 
73
# edge and staging, whilst newer versions drop edge. Therefore service root
 
74
# URIs for which we do not always have constants are derived from the staging
 
75
# one, which does always exist.
 
76
#
 
77
# It is necessary to derive, rather than use hardcoded URIs because
 
78
# launchpadlib <= 1.5.4 requires service root URIs that end in a path of
 
79
# /beta/, whilst launchpadlib >= 1.5.5 requires service root URIs with no path
 
80
# info.
 
81
#
 
82
# Once we have a hard dependency on launchpadlib >= 1.5.4 we can replace all of
 
83
# bzr's local knowledge of individual Launchpad instances with use of the
 
84
# launchpadlib.uris module.
76
85
LAUNCHPAD_API_URLS = {
77
86
    'production': STAGING_SERVICE_ROOT.replace('api.staging.launchpad.net',
78
87
        'api.launchpad.net'),