Comment 4 for bug 340935

Revision history for this message
James Westby (james-w) wrote : Re: DistributionSourcePackage doesn't expose enough of its attributes

Hi,

Apologies if I misfiled this. Allow me to be more precise in what I am seeing:

In [5]: bug = lp.load("https://api.edge.launchpad.net/beta/bugs/bugtrackers/debbugs/505113")

In [6]: task = bug.bug_tasks[0]

In [7]: task.bug_target_name
Out[7]: u'rescue (Ubuntu)'

In [8]: task.target
Out[8]: <distribution_source_package at https://api.edge.launchpad.net/beta/ubuntu/+source/rescue>

In [9]: type(task.target)
Out[9]: <class 'launchpadlib.resource.Entry'>

In [10]: task.target.self_link
Out[10]: u'https://api.edge.launchpad.net/beta/ubuntu/+source/rescue'

In [11]: task.target.resource_type_link
Out[11]: u'https://api.edge.launchpad.net/beta/#distribution_source_package'

In [12]: task.target.distribution

so it claims to be "distribution_source_package", but doesn't have the interesting
properties of that object, though I just noticed it does have "bug_reporting_guidelines".

It's not clear to me which part of launchpad is at fault, so please re-assign as
you see fit.

Thanks,

James