~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/enums.py

  • Committer: Curtis Hovey
  • Date: 2011-04-28 17:47:39 UTC
  • mto: (12943.1.3 question-email-2)
  • mto: This revision was merged to the branch mainline in revision 12949.
  • Revision ID: curtis.hovey@canonical.com-20110428174739-obr7l0viq3tbl22u
Added QuestionRecipientSet so that processes can state who should receive emails.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
    'QuestionJobType',
15
15
    'QuestionParticipation',
16
16
    'QuestionPriority',
 
17
    'QuestionRecipientSet',
17
18
    'QUESTION_STATUS_DEFAULT_SEARCH',
18
19
    'QuestionSort',
19
20
    'QuestionStatus',
104
105
        """)
105
106
 
106
107
 
 
108
class QuestionRecipientSet(EnumeratedType):
 
109
    """The kinds of recipients who will receive notification."""
 
110
 
 
111
    ASKER = Item("""
 
112
        Asker
 
113
 
 
114
        The person who asked the question.
 
115
        """)
 
116
 
 
117
    SUBSCRIBER = Item("""
 
118
        Subscriber
 
119
 
 
120
        The question's direct and indirect subscribers, exception for
 
121
        the asker.
 
122
        """)
 
123
 
 
124
    ASKER_SUBSCRIBER = Item("""
 
125
        Asker and Subscriber
 
126
 
 
127
        The question's direct and indirect subscribers, including the asker.
 
128
        """)
 
129
 
 
130
    CONTACT = Item("""
 
131
        Contact
 
132
 
 
133
        All the answer contacts for the question's target.
 
134
        """)
 
135
 
 
136
 
107
137
class QuestionParticipation(EnumeratedType):
108
138
    """The different ways a person can be involved in a question.
109
139