please make launchpad.load() work again
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
Triaged
|
Low
|
Unassigned | ||
python-launchpadlib (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-launchpadlib
With the latest version of python-launchpadlib I am unable to use launchpad.load() at all. I can work around the issue by changing the DEFAULT_VERSION in launchpad.py from "1.0" to "beta" but that's not a good solution.
launchpad.load('https:/
launchpad.load('https:/
launchpad.load('https:/
NotImplementedE
launchpad.
I've poked around quite a bit and haven't gotten anywhere. Additionally, this wasn't mentioned in https:/
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: python-launchpadlib 1.6.0-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-19-generic x86_64
Architecture: amd64
CheckboxSubmission: fee5e196cb921cb
CheckboxSystem: 2a6f54df59af338
Date: Tue Apr 13 15:27:22 2010
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/zsh
SourcePackage: python-launchpadlib
tags: | added: bugjam2010 |
On Tue, 13 Apr 2010 22:36:38 -0000, Brian Murray <email address hidden> wrote: /api.edge. launchpad. net/') results in an OOPs and /api.edge. launchpad. net/beta/ ') results in /api.edge. launchpad. net/1.0/ ') gets me rror: Can't look up definition in another url (https:/ /api.edge. launchpad. net/1.0/ #service- root) load(EDGE_ SERVICE_ ROOT) results in another OOPs and a 404
> Public bug reported:
>
> Binary package hint: python-launchpadlib
>
> With the latest version of python-launchpadlib I am unable to use
> launchpad.load() at all. I can work around the issue by changing the
> DEFAULT_VERSION in launchpad.py from "1.0" to "beta" but that's not a
> good solution.
>
> launchpad.load('https:/
> a 404
>
> launchpad.load('https:/
> AttributeError: 'Entry' object has no attribute 'self_link'
>
> launchpad.load('https:/
> NotImplementedE
>
> launchpad.
None of these would have worked before would they? They don't reference
any objects.
You should be able to do
launchpad.load('https:/ /api.edge. launchpad. net/1.0/ ubuntu')
where 1.0 matches the version of the webservice you are using.
Note that doing this is fragile, and launchpad.load should support
relative URIs so that it isn't.
In the meantime you can do
launchpad. load(str( launchpad. _root_uri) + ubuntu)
Thanks,
James