~vila/uci-engine/analyze_log

« back to all changes in this revision

Viewing changes to ci-utils/ci_utils/ticket_states.py

  • Committer: Ubuntu CI Bot
  • Author(s): Celso Providelo
  • Date: 2014-11-06 05:57:57 UTC
  • mfrom: (883.1.3 ts-reviews-ng)
  • Revision ID: ubuntu_ci_bot-20141106055757-2zbw2asud5n0dwuh
[r=PS Jenkins bot, Ursula Junque] Update TS model to support review 'status' instead of simple 'completed' flag.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
    def __str__(self):
81
81
        return str(self.value)
82
82
 
 
83
 
 
84
class ReviewStatus(DBEnumeratedType):
 
85
 
 
86
    PENDING = Item(0, "Pending")
 
87
    APPROVED = Item(10, "Approved")
 
88
    DISAPPROVED = Item(100, "Disapproved")
 
89
 
 
90
    def __str__(self):
 
91
        return str(self.value)
 
92
 
 
93
 
83
94
# we have workflow steps known to the lander (lander_service_wrapper). We
84
95
# also have steps associated in the ticket-system. This provides a mapping
85
96
# to translate between them