~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/interfaces/distroseriesparent.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:
56
56
        title=_("The component for this overlay"), required=False,
57
57
        vocabulary='Component')
58
58
 
 
59
    ordering = Int(
 
60
            title=_("Parent build dependency ordering"), required=False,
 
61
            default=1,
 
62
            description=_(
 
63
                "Parents are ordered in decreasing order of preference "
 
64
                "starting from 1."))
 
65
 
59
66
 
60
67
class IDistroSeriesParentSet(Interface):
61
68
    """`DistroSeriesParentSet` interface."""
62
69
 
63
70
    def new(derived_series, parent_series, initialized, is_overlay=False,
64
 
            pocket=None, component=None):
 
71
            pocket=None, component=None, ordering=1):
65
72
        """Create a new `DistroSeriesParent`."""
66
73
 
67
74
    def getByDerivedSeries(derived_series):