~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Ian Booth
  • Date: 2011-04-19 15:10:57 UTC
  • mfrom: (12868 devel)
  • mto: This revision was merged to the branch mainline in revision 12983.
  • Revision ID: ian.booth@canonical.com-20110419151057-he56y6k29c4zeiyk
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
    MAIN_STORE,
68
68
    SLAVE_FLAVOR,
69
69
    )
70
 
from lp.app.enums import (
71
 
    service_uses_launchpad,
72
 
    )
 
70
from lp.app.enums import service_uses_launchpad
73
71
from lp.app.errors import NotFoundError
74
72
from lp.app.interfaces.launchpad import IServiceUsage
75
73
from lp.blueprints.enums import (
788
786
            self.distribution.name.capitalize(), self.name.capitalize())
789
787
 
790
788
    @property
 
789
    def is_derived_series(self):
 
790
        """See `IDistroSeries`."""
 
791
        # XXX rvb 2011-04-11 bug=754750: This should be cleaned up once
 
792
        # the bug is fixed.
 
793
        return self.parent_series is not None
 
794
 
 
795
    @property
 
796
    def is_initialising(self):
 
797
        """See `IDistroSeries`."""
 
798
        return not getUtility(
 
799
            IInitialiseDistroSeriesJobSource).getPendingJobsForDistroseries(
 
800
                self).is_empty()
 
801
 
 
802
    @property
791
803
    def bugtargetname(self):
792
804
        """See IBugTarget."""
793
805
        # XXX mpt 2007-07-10 bugs 113258, 113262:
1990
2002
 
1991
2003
    def getDerivedSeries(self):
1992
2004
        """See `IDistroSeriesPublic`."""
1993
 
        # rvb 2011-04-08 bug=754750: The clause
 
2005
        # XXX rvb 2011-04-08 bug=754750: The clause
1994
2006
        # 'DistroSeries.distributionID!=self.distributionID' is only
1995
2007
        # required because the parent_series attribute has been
1996
2008
        # (mis-)used to denote other relations than proper derivation