bug_target objects claim to belong to derived interfaces but don't allow fetching their attributes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
New
|
Undecided
|
Unassigned |
Bug Description
The following behaviour is bizarre:
>>> launchpad.
<project at https:/
>>> launchpad.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
return super(Entry, self)._
File "/usr/lib/
% (self._
AttributeError: 'Entry' object has no attribute 'name'
The object claims to be a project (indeed, in the actual code I was writing I was parsing and testing resource_type_link to make sure of this), and according to +apidoc a project object should have a "name" attribute.
A cheesy workaround appears to be as follows, but I feel dirty:
>>> launchpad.
'hardy-backports'
(Yes, I could use bug_task.
In my understanding this is a duplicate of bug 340935