enum classes restored

This commit is contained in:
Volkan Şahin 2016-04-20 18:04:08 +03:00
parent 9886080f81
commit 23e0d605de
4 changed files with 26 additions and 23 deletions

View file

@ -5,11 +5,11 @@ from enum import Enum
class ContentType(Enum):
APPLICATION_JSON = 'APPLICATION_JSON'
APPLICATION_MS_WORD = 'APPLICATION_MS_WORD'
APPLICATION_PDF = 'APPLICATION_PDF'
APPLICATION_VND_MS_EXCEL = 'APPLICATION_VND_MS_EXCEL'
APPLICATION_MS_WORD = 'APPLICATION_MS_WORD'
TEXT_PLAIN = 'TEXT_PLAIN'
TEXT_HTML = 'TEXT_HTML'
IMAGE_PNG = 'IMAGE_PNG'
IMAGE_JPEG = 'IMAGE_JPEG'
IMAGE_PNG = 'IMAGE_PNG'
TEXT_HTML = 'TEXT_HTML'
TEXT_PLAIN = 'TEXT_PLAIN'
APPLICATION_JSON = 'APPLICATION_JSON'

View file

@ -5,15 +5,15 @@ from enum import Enum
class MessageCode(Enum):
TASK_RECEIVED = 'TASK_RECEIVED'
TASK_PROCESSED = 'TASK_PROCESSED'
TASK_ERROR = 'TASK_ERROR'
TASK_WARNING = 'TASK_WARNING'
TASK_TIMEOUT = 'TASK_TIMEOUT'
TASK_KILLED = 'TASK_KILLED'
POLICY_RECEIVED = 'POLICY_RECEIVED'
POLICY_PROCESSED = 'POLICY_PROCESSED'
POLICY_ERROR = 'POLICY_ERROR'
POLICY_WARNING = 'POLICY_WARNING'
POLICY_TIMEOUT = 'POLICY_TIMEOUT'
POLICY_KILLED = 'POLICY_KILLED'
POLICY_PROCESSED = 'POLICY_PROCESSED'
POLICY_RECEIVED = 'POLICY_RECEIVED'
POLICY_TIMEOUT = 'POLICY_TIMEOUT'
POLICY_WARNING = 'POLICY_WARNING'
TASK_ERROR = 'TASK_ERROR'
TASK_KILLED = 'TASK_KILLED'
TASK_PROCESSED = 'TASK_PROCESSED'
TASK_TIMEOUT = 'TASK_TIMEOUT'
TASK_WARNING = 'TASK_WARNING'
TASK_RECEIVED = 'TASK_RECEIVED'

View file

@ -3,17 +3,20 @@
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
from enum import Enum
class MessageType(Enum):
TASK_STATUS = 'TASK_STATUS'
REGISTER = 'REGISTER'
UNREGISTER = 'UNREGISTER'
REGISTER_LDAP = 'REGISTER_LDAP'
EXECUTE_POLICY = 'EXECUTE_POLICY'
EXECUTE_SCRIPT = 'EXECUTE_SCRIPT'
EXECUTE_TASK = 'EXECUTE_TASK'
GET_POLICIES = 'GET_POLICIES'
INSTALL_PLUGIN = 'INSTALL_PLUGIN'
LOGIN = 'LOGIN'
LOGOUT = 'LOGOUT'
POLICY_STATUS = 'POLICY_STATUS'
EXECUTE_POLICY = 'EXECUTE_POLICY'
EXECUTE_TASK = 'EXECUTE_TASK'
MISSING_PLUGIN = 'MISSING_PLUGIN'
MOVE_FILE = 'MOVE_FILE'
POLICY_STATUS = 'POLICY_STATUS'
REGISTER = 'REGISTER'
REGISTER_LDAP = 'REGISTER_LDAP'
REQUEST_FILE = 'REQUEST_FILE'
EXECUTE_SCRIPT = 'EXECUTE_SCRIPT'
UNREGISTER = 'UNREGISTER'
TASK_STATUS = 'TASK_STATUS'

View file