Expose a webservice method to retrieve copy archives
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Launchpad itself |
Low
|
William Grant |
Bug Description
In my copy archive FTBFS reporting scripts I must currently construct a URL to the copy archive. IDistribution should provide a method to retrieve copy archives by name, and this should be exposed on the webservice.
Related branches
- Eleanor Berger (community): Approve (code) on 2010-05-17
-
Diff: 149 lines (+45/-18)7 files modifiedlib/canonical/launchpad/interfaces/_schema_circular_imports.py (+2/-0)
lib/lp/registry/browser/distribution.py (+1/-2)
lib/lp/registry/doc/distribution.txt (+17/-0)
lib/lp/registry/interfaces/distribution.py (+12/-0)
lib/lp/registry/model/distribution.py (+5/-0)
lib/lp/registry/stories/webservice/xx-distribution.txt (+8/-0)
lib/lp/soyuz/browser/archive.py (+0/-16)
Changed in soyuz: | |
status: | New → Confirmed |
importance: | Undecided → Low |
William Grant (wgrant) wrote : | #1 |
Michael Nelson (michael.nelson) wrote : | #2 |
Sounds fine to me.
Michael Nelson (michael.nelson) wrote : | #3 |
Just in case it's needed, it is possible to load the copy archive manually and use it in the API:
{{{
copy_archive = launchpad.load('https:/
}}}
Changed in soyuz: | |
status: | Confirmed → Triaged |
tags: | added: api |
tags: | added: trivial |
Changed in soyuz: | |
status: | Triaged → In Progress |
assignee: | nobody → William Grant (wgrant) |
Fixed in stable r10927 <http://
Changed in soyuz: | |
milestone: | none → 10.05 |
status: | In Progress → Fix Committed |
tags: | added: qa-needstesting |
William Grant (wgrant) wrote : | #5 |
QA:
>>> import launchpadlib
>>> from launchpadlib.
>>> lp = Launchpad.
>>> lp.distribution
<archive at https:/
>>> lp.distribution
>>> lp.distribution
<archive at https:/
>>> lp.distribution
tags: |
added: qa-ok removed: qa-needstesting |
Changed in soyuz: | |
status: | Fix Committed → Fix Released |
The easiest thing to do seems to be to move lp.soyuz. browser. archive. traverse_ distribution_ to_archive to Distribution. getArchive and export that. Any objections?