Add "services" ServiceRoot to launchpadlib

Bug #974139 reported by Ian Booth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpadlib
In Progress
High
Ian Booth

Bug Description

Launchpad now supports named services. launchpadlib needs to provide a convenient way to access such services.

Instead of:

service = launchpad.load('%s/+services/servicename' % self.launchpad._root_uri)

use this:

service = launchpad.services['servicename']

Related branches

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 974139] [NEW] Add "services" ServiceRoot to launchpadlib

Can you not just use
service = launchpad.load('/+services/servicename')

Revision history for this message
Ian Booth (wallyworld) wrote :

No, there is a bug preventing that:
Bug 681767: Launchpadlib can't do relative url's

And we wanted to use the nicer syntax of
launchpad.services['servicename']

On 11/04/12 07:04, Robert Collins wrote:
> Can you not just use
> service = launchpad.load('/+services/servicename')
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.