~lutostag/ubuntu/trusty/maas/1.5.4+keystone

« back to all changes in this revision

Viewing changes to src/metadataserver/enum.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-03-04 11:49:44 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: package-import@ubuntu.com-20130304114944-azcvu9anlf8mizpa
Tags: upstream-1.3+bzr1452+dfsg
ImportĀ upstreamĀ versionĀ 1.3+bzr1452+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2012 Canonical Ltd.  This software is licensed under the
 
2
# GNU Affero General Public License version 3 (see the file LICENSE).
 
3
 
 
4
"""Enumerations meaningful to the metadataserver application."""
 
5
 
 
6
from __future__ import (
 
7
    absolute_import,
 
8
    print_function,
 
9
    unicode_literals,
 
10
    )
 
11
 
 
12
__metaclass__ = type
 
13
__all__ = [
 
14
    'COMMISSIONING_STATUS',
 
15
    'COMMISSIONING_STATUS_CHOICES',
 
16
    ]
 
17
 
 
18
 
 
19
class COMMISSIONING_STATUS:
 
20
    """The vocabulary of a commissioning script's possible statuses."""
 
21
    DEFAULT_STATUS = "OK"
 
22
 
 
23
    OK = "OK"
 
24
    FAILED = "FAILED"
 
25
    WORKING = "WORKING"
 
26
 
 
27
 
 
28
COMMISSIONING_STATUS_CHOICES = (
 
29
    (COMMISSIONING_STATUS.OK, "OK"),
 
30
    (COMMISSIONING_STATUS.FAILED, "FAILED"),
 
31
    (COMMISSIONING_STATUS.WORKING, "WORKING"),
 
32
)