unable to get milestone of a task via the API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Some recent changes (in malone) made it impossible to get the milestone of a task using launchpadlib. AFAICS, that the attribute is called "milestone_link" in the json representation, but it was renamed to "milestone" in the wadl definition file.
(as a side note: as of now https:/
In [1]: b = launchpad.
In [2]: t = b.bug_tasks[0]
In [3]: dir(t)
Out[3]:
[...
'milestone',
'owner',
...]
In [4]: t.milestone
-------
AttributeError Traceback (most recent call last)
/media/
/media/
455 if name in self._dirty_
456 return self._dirty_
--> 457 return super(Entry, self)._
458
459 def __setattr__(self, name, value):
/media/
300 except KeyError:
301 raise AttributeError(
--> 302 % (self._
303
304 def _get_external_
AttributeError: 'Entry' object has no attribute 'milestone'
In [5]:
Markus
Changed in malone: | |
status: | New → Invalid |
Edge was reverted to a previous revision of Launchpad at some point, and I think it's missing the relevant code, but that should be solved very soon.