mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-26 07:02:22 +03:00
enum classes restored
This commit is contained in:
parent
9886080f81
commit
23e0d605de
4 changed files with 26 additions and 23 deletions
|
@ -5,11 +5,11 @@ from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
class ContentType(Enum):
|
class ContentType(Enum):
|
||||||
APPLICATION_JSON = 'APPLICATION_JSON'
|
APPLICATION_MS_WORD = 'APPLICATION_MS_WORD'
|
||||||
APPLICATION_PDF = 'APPLICATION_PDF'
|
APPLICATION_PDF = 'APPLICATION_PDF'
|
||||||
APPLICATION_VND_MS_EXCEL = 'APPLICATION_VND_MS_EXCEL'
|
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_JPEG = 'IMAGE_JPEG'
|
||||||
|
IMAGE_PNG = 'IMAGE_PNG'
|
||||||
|
TEXT_HTML = 'TEXT_HTML'
|
||||||
|
TEXT_PLAIN = 'TEXT_PLAIN'
|
||||||
|
APPLICATION_JSON = 'APPLICATION_JSON'
|
|
@ -5,15 +5,15 @@ from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
class MessageCode(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_ERROR = 'POLICY_ERROR'
|
||||||
POLICY_WARNING = 'POLICY_WARNING'
|
|
||||||
POLICY_TIMEOUT = 'POLICY_TIMEOUT'
|
|
||||||
POLICY_KILLED = 'POLICY_KILLED'
|
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'
|
|
@ -3,17 +3,20 @@
|
||||||
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
|
||||||
class MessageType(Enum):
|
class MessageType(Enum):
|
||||||
TASK_STATUS = 'TASK_STATUS'
|
EXECUTE_POLICY = 'EXECUTE_POLICY'
|
||||||
REGISTER = 'REGISTER'
|
EXECUTE_SCRIPT = 'EXECUTE_SCRIPT'
|
||||||
UNREGISTER = 'UNREGISTER'
|
EXECUTE_TASK = 'EXECUTE_TASK'
|
||||||
REGISTER_LDAP = 'REGISTER_LDAP'
|
|
||||||
GET_POLICIES = 'GET_POLICIES'
|
GET_POLICIES = 'GET_POLICIES'
|
||||||
|
INSTALL_PLUGIN = 'INSTALL_PLUGIN'
|
||||||
LOGIN = 'LOGIN'
|
LOGIN = 'LOGIN'
|
||||||
LOGOUT = 'LOGOUT'
|
LOGOUT = 'LOGOUT'
|
||||||
POLICY_STATUS = 'POLICY_STATUS'
|
MISSING_PLUGIN = 'MISSING_PLUGIN'
|
||||||
EXECUTE_POLICY = 'EXECUTE_POLICY'
|
|
||||||
EXECUTE_TASK = 'EXECUTE_TASK'
|
|
||||||
MOVE_FILE = 'MOVE_FILE'
|
MOVE_FILE = 'MOVE_FILE'
|
||||||
|
POLICY_STATUS = 'POLICY_STATUS'
|
||||||
|
REGISTER = 'REGISTER'
|
||||||
|
REGISTER_LDAP = 'REGISTER_LDAP'
|
||||||
REQUEST_FILE = 'REQUEST_FILE'
|
REQUEST_FILE = 'REQUEST_FILE'
|
||||||
EXECUTE_SCRIPT = 'EXECUTE_SCRIPT'
|
UNREGISTER = 'UNREGISTER'
|
||||||
|
TASK_STATUS = 'TASK_STATUS'
|
0
opt/ahenk/base/model/enum/__init__.py
Normal file
0
opt/ahenk/base/model/enum/__init__.py
Normal file
Loading…
Reference in a new issue