830
831
def getDerivedSeries():
831
832
"""Get all `DistroSeries` derived from this one."""
834
@operation_returns_collection_of(Interface)
835
@export_read_operation()
836
def getParentSeries():
837
"""Get all parent `DistroSeries`."""
839
@operation_parameters(
840
parent_series=Reference(
841
schema=Interface, # IDistroSeries
842
title=_("The parent series to consider."),
844
difference_type=Choice(
845
vocabulary=DBEnumeratedType, # DistroSeriesDifferenceType
846
title=_("Only return differences of this type."), required=False),
847
source_package_name_filter=TextLine(
848
title=_("Only return differences for packages matching this "
852
vocabulary=DBEnumeratedType, # DistroSeriesDifferenceStatus
853
title=_("Only return differences of this status."),
855
child_version_higher=Bool(
856
title=_("Only return differences for which the child's version "
857
"is higher than the parent's."),
860
@operation_returns_collection_of(Interface)
861
@export_read_operation()
862
@operation_for_version('devel')
863
def getDifferencesTo(parent_series, difference_type,
864
source_package_name_filter, status,
865
child_version_higher):
866
"""Return the differences between this series and the specified
867
parent_series (or all the parent series if parent_series is None).
869
:param parent_series: The parent series for which the differences
870
should be returned. All parents are considered if this is None.
871
:param difference_type: The type of the differences to return.
872
:param source_package_name_filter: A package name to use as a filter
874
:param status: The status of the differences to return.
875
:param child_version_higher: Only return differences for which the
876
child's version is higher than the parent's version.
834
880
class IDistroSeriesEditRestricted(Interface):
835
881
"""IDistroSeries properties which require launchpad.Edit."""