Collections returned by named operations don't act like other collections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
Triaged
|
Low
|
Unassigned |
Bug Description
I tried to use launchpad.load() to directly access the url to get all tasks for a project, but this fails with a ValueError:
In [13]: bughelper = launchpad.
In [14]: t = bughelper.
In [15]: t._wadl_
Out[15]: 'https:/
In [16]: t = launchpad.
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (9, 0))
-------
ValueError Traceback (most recent call last)
/media/
/media/
76 if type_link is None:
77 raise ValueError(
---> 78 % url)
79 resource_type = self._root.
80 wadl_resource = WadlResource(
ValueError: Couldn't determine the resource type of https:/
In [17]:
As you can see in the attached file from the cache the "resource_
Changed in launchpadlib: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in launchpadlib: | |
importance: | Medium → Low |
This is why those collections don't have a self_link (as per bug 301683). It wouldn't do you any good.
Fixing this will require significant changes to the WADL generation.