~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/interfaces/questionmessage.py

[r=danilo][bug=769173] Addes the same comment display rules and
        styling to question messages as used in bugs,
        to aid in dealing with question spam.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
    Bool,
16
16
    Choice,
17
17
    Field,
 
18
    Int,
18
19
    )
19
20
 
20
21
from canonical.launchpad import _
48
49
        "related the action operated by this message."), required=True,
49
50
        readonly=True, default=QuestionStatus.OPEN,
50
51
        vocabulary=QuestionStatus)
 
52
    index = Int(
 
53
        title=_("Message index."),
 
54
        description=_("The messages index in the question's list of "
 
55
        "messages."),
 
56
        readonly=True)
51
57
    visible = Bool(
52
58
        title=_("Message visibility."),
53
59
        description=_("Whether or not the message is visible."),