31
26
from lp.registry.interfaces.distroseries import IDistroSeries
32
27
from lp.registry.interfaces.person import IPerson
33
28
from lp.registry.interfaces.pocket import PackagePublishingPocket
29
from lp.soyuz.enums import PackageCopyStatus
34
30
from lp.soyuz.interfaces.archive import IArchive
35
31
from lp.soyuz.interfaces.component import IComponent
38
class PackageCopyStatus(DBEnumeratedType):
39
"""Package copy status type.
41
The status may be one of the following: new, in progress, complete,
42
failed, canceling, cancelled.
48
A new package copy operation was requested.
51
INPROGRESS = DBItem(1, """
54
The package copy operation is in progress.
57
COMPLETE = DBItem(2, """
60
The package copy operation has completed successfully.
63
FAILED = DBItem(3, """
66
The package copy operation has failed.
69
CANCELING = DBItem(4, """
72
The package copy operation was cancelled by the user and the
73
cancellation is in progress.
76
CANCELLED = DBItem(5, """
79
The package copy operation was cancelled by the user.
83
34
class IPackageCopyRequest(Interface):
84
35
"""A Build interface"""