~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/vocabularies.py

Add DistroSeriesInitializeView.rebuilding_allowed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
from storm.info import ClassAlias
82
82
from zope.component import getUtility
83
83
from zope.interface import implements
84
 
from zope.schema.interfaces import (
85
 
    IVocabularyTokenized,
86
 
    )
 
84
from zope.schema.interfaces import IVocabularyTokenized
87
85
from zope.schema.vocabulary import (
88
86
    SimpleTerm,
89
87
    SimpleVocabulary,
166
164
from lp.registry.interfaces.sourcepackage import ISourcePackage
167
165
from lp.registry.model.distribution import Distribution
168
166
from lp.registry.model.distroseries import DistroSeries
 
167
from lp.registry.model.distroseriesparent import DistroSeriesParent
169
168
from lp.registry.model.featuredproject import FeaturedProject
170
169
from lp.registry.model.karma import KarmaCategory
171
170
from lp.registry.model.mailinglist import MailingList
1787
1786
            parent.distributionID, And(
1788
1787
                parent.distributionID != self.distribution.id,
1789
1788
                child.distributionID == self.distribution.id,
1790
 
                child.previous_seriesID == parent.id))
 
1789
                child.id == DistroSeriesParent.derived_series_id,
 
1790
                parent.id == DistroSeriesParent.parent_series_id))
1791
1791
        where.append(
1792
1792
            DistroSeries.distributionID.is_in(parent_distributions))
1793
1793
        terms = self.find_terms(where)