11347.9.5
by Graham Binns
Moved BugNotificationLevel into lp.registry.enum. |
1 |
# Copyright 2010 Canonical Ltd. This software is licensed under the
|
2 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
|
3 |
||
4 |
"""Enums for the Registry app."""
|
|
5 |
||
6 |
__metaclass__ = type |
|
7 |
__all__ = [ |
|
7675.845.3
by Edwin Grubbs
Renamed MembershipJob to PersonTransferJob. |
8 |
'PersonTransferJobType', |
7675.802.1
by Michael Nelson
Initial interface and model code. |
9 |
'DistroSeriesDifferenceStatus', |
7675.802.13
by Michael Nelson
Updated interface to match new schema. |
10 |
'DistroSeriesDifferenceType', |
11347.9.5
by Graham Binns
Moved BugNotificationLevel into lp.registry.enum. |
11 |
]
|
12 |
||
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
13 |
from lazr.enum import ( |
14 |
DBEnumeratedType, |
|
15 |
DBItem, |
|
16 |
)
|
|
11347.9.5
by Graham Binns
Moved BugNotificationLevel into lp.registry.enum. |
17 |
|
18 |
||
7675.802.1
by Michael Nelson
Initial interface and model code. |
19 |
class DistroSeriesDifferenceStatus(DBEnumeratedType): |
20 |
"""Distribution series difference status.
|
|
21 |
||
22 |
The status of a package difference between two DistroSeries.
|
|
23 |
"""
|
|
24 |
||
25 |
NEEDS_ATTENTION = DBItem(1, """ |
|
26 |
Needs attention
|
|
27 |
||
28 |
This difference is current and needs attention.
|
|
29 |
""") |
|
30 |
||
7675.804.21
by Michael Nelson
Renamed IGNORED status' to BLACKLISTED based on email discussions. |
31 |
BLACKLISTED_CURRENT = DBItem(2, """ |
32 |
Blacklisted current version
|
|
7675.802.1
by Michael Nelson
Initial interface and model code. |
33 |
|
34 |
This difference is being ignored until a new package is uploaded
|
|
35 |
or the status is manually updated.
|
|
36 |
""") |
|
37 |
||
7675.804.21
by Michael Nelson
Renamed IGNORED status' to BLACKLISTED based on email discussions. |
38 |
BLACKLISTED_ALWAYS = DBItem(3, """ |
39 |
Blacklisted always
|
|
7675.802.1
by Michael Nelson
Initial interface and model code. |
40 |
|
41 |
This difference should always be ignored.
|
|
42 |
""") |
|
7675.802.13
by Michael Nelson
Updated interface to match new schema. |
43 |
|
7675.802.22
by Michael Nelson
Added DistroSeriesDifference.updateDifferenceType() |
44 |
RESOLVED = DBItem(4, """ |
45 |
Resolved
|
|
46 |
||
47 |
This difference has been resolved and versions are now equal.
|
|
48 |
""") |
|
49 |
||
7675.845.3
by Edwin Grubbs
Renamed MembershipJob to PersonTransferJob. |
50 |
|
7675.802.13
by Michael Nelson
Updated interface to match new schema. |
51 |
class DistroSeriesDifferenceType(DBEnumeratedType): |
52 |
"""Distribution series difference type."""
|
|
53 |
||
54 |
UNIQUE_TO_DERIVED_SERIES = DBItem(1, """ |
|
55 |
Unique to derived series
|
|
56 |
||
57 |
This package is present in the derived series but not the parent
|
|
58 |
series.
|
|
59 |
""") |
|
60 |
||
61 |
MISSING_FROM_DERIVED_SERIES = DBItem(2, """ |
|
62 |
Missing from derived series
|
|
63 |
||
64 |
This package is present in the parent series but missing from the
|
|
65 |
derived series.
|
|
66 |
""") |
|
67 |
||
68 |
DIFFERENT_VERSIONS = DBItem(3, """ |
|
69 |
Different versions
|
|
70 |
||
71 |
This package is present in both series with different versions.
|
|
72 |
""") |
|
7675.845.1
by Edwin Grubbs
Added classes. |
73 |
|
74 |
||
7675.845.3
by Edwin Grubbs
Renamed MembershipJob to PersonTransferJob. |
75 |
class PersonTransferJobType(DBEnumeratedType): |
76 |
"""Values that IPersonTransferJob.job_type can take."""
|
|
7675.845.1
by Edwin Grubbs
Added classes. |
77 |
|
7675.845.10
by Edwin Grubbs
Fixed job type enum value. Allow multiple multiple MembershipNotificationJobs with the same team and member. |
78 |
MEMBERSHIP_NOTIFICATION = DBItem(0, """ |
7675.845.4
by Edwin Grubbs
Most of refactoring complete. |
79 |
Add-member notification
|
80 |
||
7675.845.1
by Edwin Grubbs
Added classes. |
81 |
Notify affected users of new team membership.
|
82 |
""") |
|
12394.1.2
by Gavin Panella
Get PersonMergeJob up and running. |
83 |
|
84 |
MERGE = DBItem(1, """ |
|
85 |
Person merge
|
|
86 |
||
87 |
Merge one person or team into another person or team.
|
|
88 |
""") |