~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/model/distroseries.py

[r=julian-edwards][bug=789091] Fix InitialiseDistroSeries so that it
        actually initializes a derived series from multiple parents.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1835
1835
        from lp.registry.interfaces.distroseriesparent import (
1836
1836
            IDistroSeriesParentSet,
1837
1837
            )
1838
 
        dsps = getUtility(IDistroSeriesParentSet).getByDerivedSeries(self)
 
1838
        dsp_set = getUtility(IDistroSeriesParentSet)
 
1839
        dsps = dsp_set.getByDerivedSeries(self).order_by('ordering')
1839
1840
        return [dsp.parent_series for dsp in dsps]
1840
1841
 
1841
1842
    def getDerivedSeries(self):