Commit e7f29576 authored by David Trattnig's avatar David Trattnig
Browse files

Moved enums to base module.

parent a986bc4d
......@@ -38,7 +38,7 @@ from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
from libraries.enum.auraenumerations import Channel, ChannelType
from modules.base.enum import Channel, ChannelType
from modules.base.config import AuraConfig
from modules.base.simpleutil import SimpleUtil, EngineUtil
......
......@@ -25,24 +25,6 @@
from enum import Enum
class TerminalColors(Enum):
HEADER = "\033[95m"
RED = "\033[31m"
GREEN = "\033[32m"
ORANGE = "\033[33m"
BLUE = "\033[34m"
PINK = "\033[35m"
CYAN = "\033[36m"
WARNING = "\033[31m"
FAIL = "\033[41m"
BOLD = "\033[1m"
UNDERLINE = "\033[4m"
ENDC = "\033[0m"
class RedisChannel(Enum):
STANDARD = "aura"
......
......@@ -24,7 +24,7 @@
import json
from libraries.enum.auraenumerations import RedisChannel, TerminalColors
from modules.base.enum import RedisChannel, TerminalColors
from modules.communication.redis.adapter import ClientRedisAdapter, ServerRedisAdapter
from modules.communication.redis.messenger import RedisMessenger
from libraries.database.broadcasts import AuraDatabaseModel
......
......@@ -30,7 +30,7 @@ import logging
from multiprocessing import Lock
from modules.base.exceptions import LQConnectionError
from libraries.enum.auraenumerations import TerminalColors
from modules.base.simpleutil import TerminalColors
"""
LiquidSoapClient Class
......
......@@ -22,7 +22,7 @@
# along with engine. If not, see <http://www.gnu.org/licenses/>.
#
from libraries.enum.auraenumerations import Channel, ChannelType
from modules.base.enum import Channel, ChannelType
from modules.communication.liquidsoap.client import LiquidSoapClient
......
......@@ -35,7 +35,7 @@ from modules.communication.redis.messenger import RedisMessenger
# from modules.communication.connection_tester import ConnectionTester
from libraries.database.statestore import RedisStateStore
from modules.base.exceptions import RedisConnectionException
from libraries.enum.auraenumerations import RedisChannel, TerminalColors, FallbackType
from modules.base.enum import RedisChannel, TerminalColors, FallbackType
# ------------------------------------------------------------------------------------------ #
......
......@@ -29,7 +29,7 @@ import datetime
from libraries.database.statestore import RedisStateStore
from modules.communication.mail import AuraMailer
from modules.base.exceptions import PlaylistException
from libraries.enum.auraenumerations import RedisChannel
from modules.base.enum import RedisChannel
from modules.base.logger import AuraLogger
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment