cannot pass sequence to Archive.getPublishedSources through API

Bug #845486 reported by Colin Watson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Unassigned

Bug Description

The implementation of Archive.getPublishedSources allows the 'status' argument to be a sequence of permitted statuses. However, the API is declared thus:

        status=Choice(
            title=_('Package Publishing Status'),
            description=_('The status of this publishing record'),
            # Really PackagePublishingStatus, circular import fixed below.
            vocabulary=DBEnumeratedType,
            required=False),

Shouldn't this be List() and value_type=Choice() so that we can ask for publications matching multiple statuses in a single API call?

Revision history for this message
Colin Watson (cjwatson) wrote :

Except of course breaking existing code that passes a single status would be bad.

Gary Poster (gary)
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.