← Back to team overview

linaro-infrastructure-stakeholders team mailing list archive

Re: [proposal] components.linaro.org

 

On Tue, 25 Jan 2011 16:35:25 +0100, Zygmunt Krynicki <zygmunt.krynicki@xxxxxxxxxx> wrote:
> W dniu 25.01.2011 16:26, James Westby pisze:
> 
> >> What information would you like to mirror?
> >
> > Description, releases, announcements for a start I think.
> 
> Could you please show me some snippets that access this information 
> using launchpadlib?

from launchpadlib.launchpad import Launchpad 

lp = Launchpad.login_with("testing", service_root="production")
lc = lp.projects['launch-control']
print lc.title
print lc.summary
print lc.description
for series in lc.series:
    print series.title
    release = series.releases[0]
    print release.title
    for release_file in release.files:
        print release_file.description

I can't see that announcements are currently exported.

Thanks,

James



Follow ups

References