~cr3/checkbox-core/trunk

« back to all changes in this revision

Viewing changes to checkbox/shadowd/operation.py

  • Committer: Marc Tardif
  • Date: 2012-04-24 22:43:09 UTC
  • Revision ID: marc.tardif@canonical.com-20120424224309-8jzelgfx27xaqlhz
Preliminary submit and shadowd components.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Copyright (c) 2012 Canonical
 
3
#
 
4
# This file is part of Checkbox.
 
5
#
 
6
# Checkbox is free software; you can redistribute it and/or modify
 
7
# it under the terms of the GNU Lesser General Public License as
 
8
# published by the Free Software Foundation; either version 2.1 of
 
9
# the License, or (at your option) any later version.
 
10
#
 
11
# Checkbox is distributed in the hope that it will be useful,
 
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
# GNU Lesser General Public License for more details.
 
15
#
 
16
# You should have received a copy of the GNU Lesser General Public License
 
17
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
#
 
19
__metaclass__ = type
 
20
 
 
21
__all__ = [
 
22
    "OperationCode",
 
23
    ]
 
24
 
 
25
from checkbox.lib.enum import Enum
 
26
 
 
27
 
 
28
OperationCode = Enum(
 
29
    "INITIALIZE",
 
30
    "CREATE_CLUSTER",
 
31
    "CREATE_PROCESS",
 
32
    "CLOSE_CONNECTION",
 
33
    "CLOSE_SOCKET",
 
34
    )