~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/interfaces/distributionjob.py

  • Committer: Aaron Bentley
  • Date: 2011-06-20 19:01:22 UTC
  • mfrom: (13261 devel)
  • mto: This revision was merged to the branch mainline in revision 13270.
  • Revision ID: aaron@canonical.com-20110620190122-p453uur1x48gn820
MergedĀ fromĀ stable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    "IDistroSeriesDifferenceJobSource",
11
11
    "IInitializeDistroSeriesJob",
12
12
    "IInitializeDistroSeriesJobSource",
 
13
    "InitializationCompleted",
 
14
    "InitializationPending",
13
15
]
14
16
 
15
17
from lazr.enum import (
76
78
        """)
77
79
 
78
80
 
 
81
class InitializationPending(Exception):
 
82
    """The initialization of the distroseries has already been scheduled.
 
83
 
 
84
    :ivar job: The `InitializeDistroSeriesJob` that's already scheduled.
 
85
    """
 
86
 
 
87
    def __init__(self, job):
 
88
        super(InitializationPending, self).__init__()
 
89
        self.job = job
 
90
 
 
91
 
 
92
class InitializationCompleted(Exception):
 
93
    """The initialization of the distroseries has already been done.
 
94
 
 
95
    :ivar job: The `InitializeDistroSeriesJob` that's already scheduled.
 
96
    """
 
97
 
 
98
    def __init__(self, job):
 
99
        super(InitializationCompleted, self).__init__()
 
100
        self.job = job
 
101
 
 
102
 
79
103
class IInitializeDistroSeriesJobSource(IJobSource):
80
104
    """An interface for acquiring IInitializeDistroSeriesJobs."""
81
105