/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 breezy/plugins/propose/launchpad.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-02-02 15:38:13 UTC
  • mfrom: (7260.1.2 propose-base-url)
  • Revision ID: breezy.the.bot@gmail.com-20190202153813-ohq1qklj2znlut7y
Add .base_url property to Hoster.

Merged from https://code.launchpad.net/~jelmer/brz/propose-base-url/+merge/362565

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
            lp_base_url = uris.LPNET_SERVICE_ROOT
159
159
        self.launchpad = lp_api.connect_launchpad(lp_base_url)
160
160
 
 
161
    @property
 
162
    def base_url(self):
 
163
        return lp_api.uris.web_root_for_service_root(
 
164
            str(self.launchpad._root_uri))
 
165
 
161
166
    def __repr__(self):
162
167
        return "Launchpad(staging=%s)" % self._staging
163
168