1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Copyright 2010 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""Enums for the Registry app."""
__metaclass__ = type
__all__ = [
'PersonTransferJobType',
'DistroSeriesDifferenceStatus',
'DistroSeriesDifferenceType',
]
from lazr.enum import (
DBEnumeratedType,
DBItem,
)
class DistroSeriesDifferenceStatus(DBEnumeratedType):
"""Distribution series difference status.
The status of a package difference between two DistroSeries.
"""
NEEDS_ATTENTION = DBItem(1, """
Needs attention
This difference is current and needs attention.
""")
BLACKLISTED_CURRENT = DBItem(2, """
Blacklisted current version
This difference is being ignored until a new package is uploaded
or the status is manually updated.
""")
BLACKLISTED_ALWAYS = DBItem(3, """
Blacklisted always
This difference should always be ignored.
""")
RESOLVED = DBItem(4, """
Resolved
This difference has been resolved and versions are now equal.
""")
class DistroSeriesDifferenceType(DBEnumeratedType):
"""Distribution series difference type."""
UNIQUE_TO_DERIVED_SERIES = DBItem(1, """
Unique to derived series
This package is present in the derived series but not the parent
series.
""")
MISSING_FROM_DERIVED_SERIES = DBItem(2, """
Missing from derived series
This package is present in the parent series but missing from the
derived series.
""")
DIFFERENT_VERSIONS = DBItem(3, """
Different versions
This package is present in both series with different versions.
""")
class PersonTransferJobType(DBEnumeratedType):
"""Values that IPersonTransferJob.job_type can take."""
MEMBERSHIP_NOTIFICATION = DBItem(0, """
Add-member notification
Notify affected users of new team membership.
""")
MERGE = DBItem(1, """
Person merge
Merge one person or team into another person or team.
""")
|