~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

[r=bac][bug=777120] Fix the vocabulary of possible parents to use
        DSP. Fix initseries page to hide the rebuild option the
        distribution already has an initialized series.

Show diffs side-by-side

added added

removed removed

Lines of Context:
647
647
        return getFeatureFlag("soyuz.derived_series_ui.enabled") is not None
648
648
 
649
649
    @property
 
650
    def rebuilding_allowed(self):
 
651
        """If the distribution has got any initialized series already,
 
652
        rebuilding is not allowed.
 
653
        """
 
654
        return not self.context.distribution.has_published_sources
 
655
 
 
656
    @property
650
657
    def next_url(self):
651
658
        return canonical_url(self.context)
652
659