~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Julian Edwards
  • Date: 2010-08-24 11:41:37 UTC
  • mto: This revision was merged to the branch mainline in revision 11453.
  • Revision ID: julian.edwards@canonical.com-20100824114137-jimdsi2lbhlw4eaj
Move PackageCopyStatus

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
__metaclass__ = type
9
9
 
10
10
__all__ = [
11
 
    'PackageCopyStatus',
12
11
    'IPackageCopyRequest',
13
12
    'IPackageCopyRequestSet',
14
13
    ]
15
14
 
16
 
from lazr.enum import (
17
 
    DBEnumeratedType,
18
 
    DBItem,
19
 
    )
20
15
from zope.interface import Interface
21
16
from zope.schema import (
22
17
    Bool,
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
36
32
 
37
33
 
38
 
class PackageCopyStatus(DBEnumeratedType):
39
 
    """Package copy status type.
40
 
 
41
 
    The status may be one of the following: new, in progress, complete,
42
 
    failed, canceling, cancelled.
43
 
    """
44
 
 
45
 
    NEW = DBItem(0, """
46
 
        New
47
 
 
48
 
        A new package copy operation was requested.
49
 
        """)
50
 
 
51
 
    INPROGRESS = DBItem(1, """
52
 
        In progress
53
 
 
54
 
        The package copy operation is in progress.
55
 
        """)
56
 
 
57
 
    COMPLETE = DBItem(2, """
58
 
        Complete
59
 
 
60
 
        The package copy operation has completed successfully.
61
 
        """)
62
 
 
63
 
    FAILED = DBItem(3, """
64
 
        Failed
65
 
 
66
 
        The package copy operation has failed.
67
 
        """)
68
 
 
69
 
    CANCELING = DBItem(4, """
70
 
        Canceling
71
 
 
72
 
        The package copy operation was cancelled by the user and the
73
 
        cancellation is in progress.
74
 
        """)
75
 
 
76
 
    CANCELLED = DBItem(5, """
77
 
        Cancelled
78
 
 
79
 
        The package copy operation was cancelled by the user.
80
 
        """)
81
 
 
82
 
 
83
34
class IPackageCopyRequest(Interface):
84
35
    """A Build interface"""
85
36