~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/doc/workflow.txt

  • Committer: Stuart Bishop
  • Date: 2011-05-02 05:53:52 UTC
  • mfrom: (7675.1121.1 pending-db-changes)
  • mto: This revision was merged to the branch mainline in revision 13013.
  • Revision ID: stuart.bishop@canonical.com-20110502055352-cilw2zfwiki7xsvd
Merged pending-db-changes into db-deploy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
The state of a question is tracked through its status, which model a
6
6
question's lifecycle.  These are defined in the QuestionStatus enumeration.
7
7
 
8
 
    >>> from lp.answers.interfaces.questionenums import QuestionStatus
 
8
    >>> from lp.answers.enums import QuestionStatus
9
9
    >>> for status in QuestionStatus.items:
10
10
    ...     print status.name
11
11
    OPEN
18
18
Status change occurs as a consequence of a user's action.  The possible
19
19
actions are defined in the QuestionAction enumeration.
20
20
 
21
 
    >>> from lp.answers.interfaces.questionenums import QuestionAction
 
21
    >>> from lp.answers.enums import QuestionAction
22
22
    >>> for status in QuestionAction.items:
23
23
    ...     print status.name
24
24
    REQUESTINFO