~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Gavin Panella
  • Date: 2011-06-07 19:49:53 UTC
  • mto: This revision was merged to the branch mainline in revision 13200.
  • Revision ID: gavin.panella@canonical.com-20110607194953-gs0snp8m0ehgrpfs
Show a message on +initseries, and prevent further derivation, when the distroseries is in the process of being derived.

Show diffs side-by-side

added added

removed removed

Lines of Context:
654
654
    def show_derivation_form(self):
655
655
        return (
656
656
            self.is_derived_series_feature_enabled and
657
 
            not self.context.is_derived_series)
 
657
            not self.context.is_derived_series and
 
658
            not self.context.is_initialising)
658
659
 
659
660
    @property
660
661
    def show_already_derived_message(self):
663
664
            self.context.is_derived_series)
664
665
 
665
666
    @property
 
667
    def show_already_initializing_message(self):
 
668
        return (
 
669
            self.is_derived_series_feature_enabled and
 
670
            self.context.is_initialising)
 
671
 
 
672
    @property
666
673
    def next_url(self):
667
674
        return canonical_url(self.context)
668
675