Beispiel #1
0
def initialize_log_listener(logging_queue):
    global LOGGER
    LOGGER = init_logging(APP_NAME)

    # This will move all handlers from LOGGER to the queue listener
    log_listener = setup_log_queue_listener(LOGGER, logging_queue)

    return log_listener
Beispiel #2
0
from modules.globals import Resource
from modules.gui.wizard.preset import PresetWizardPage
from modules.gui.wizard.result import ResultWizardPage
from modules.itemview.data_read import KnechtDataToModel
from modules.itemview.model import KnechtModel
from modules.itemview.model_globals import KnechtModelGlobals as Kg
from modules.itemview.tree_view import KnechtTreeView
from modules.itemview.xml_read import KnechtOpenXml
from modules.itemview.xml_save import KnechtSaveXml
from modules.knecht_objects import KnData
from modules.knecht_utils import CreateZip
from modules.language import get_translation
from modules.log import init_logging
from modules.settings import Settings

LOGGER = init_logging(__name__)

# translate strings
lang = get_translation()
lang.install()
_ = lang.gettext


class SessionData:
    def __init__(self):
        self.pkg_filter = list()
        self.pkg_filter_regex = str()
        self.import_data = KnData()
        self.fakom_selection = dict()  # str(Model): List[FA_SIB_LUM_on]
        self.preset_page_ids = set()   # Keep a set of created preset page id's
        self.preset_page_content = dict()  # Key: model_code+fakom Value: preset tree xml data as string
Beispiel #3
0
def delayed_log_setup():
    from modules.log import init_logging
    global LOGGER
    LOGGER = init_logging(__name__)
Beispiel #4
0
def start_server():
    init_logging()
    log = logging.getLogger(__name__)
    log.info('Starting application')
    init_subscriptions()
    FLASK.run(host='0.0.0.0', port=3010, debug=False)