Separate event handlers from independent components

This commit is contained in:
R. Richard 2019-06-20 16:04:21 +02:00 committed by Kristóf Tóth
parent c8a0546041
commit 13e7470f48
15 changed files with 18 additions and 20 deletions

View File

@ -0,0 +1,10 @@
from .directory_monitoring_event_handler import DirectoryMonitoringEventHandler
from .directory_snapshotting_event_handler import DirectorySnapshottingEventHandler
from .frontend_event_handler import FrontendEventHandler
from .fsm_managing_event_handler import FSMManagingEventHandler
from .ide_event_handler import IdeEventHandler
from .log_monitoring_event_handler import LogMonitoringEventHandler
from .pipe_io_event_handler import PipeIOEventHandlerBase, PipeIOEventHandler, PipeIOServer
from .pipe_io_event_handler import TransformerPipeIOEventHandler, CommandEventHandler
from .process_managing_event_handler import ProcessManagingEventHandler
from .terminal_event_handler import TerminalEventHandler

View File

@ -1,10 +1,9 @@
from abc import ABC, abstractmethod
from contextlib import suppress
from tfw.components.message_sender import MessageSender
from tfw.event_handlers import FrontendEventHandlerBase
from .message_sender import MessageSender
class FrontendEventHandler(FrontendEventHandlerBase):
def __init__(self):

View File

@ -9,10 +9,9 @@ from typing import Iterable
from tfw.event_handlers import FrontendEventHandlerBase
from tfw.mixins.monitor_manager_mixin import MonitorManagerMixin
from tfw.components import FileManager
from tfw.components.directory_monitor import DirectoryMonitor
from .file_manager import FileManager
LOG = logging.getLogger(__name__)

View File

@ -11,8 +11,7 @@ from threading import Thread
from contextlib import suppress
from tfw.event_handlers import EventHandlerBase
from .pipe_io_server import PipeIOServer, terminate_process_on_failure
from tfw.components.pipe_io_server import PipeIOServer, terminate_process_on_failure
LOG = logging.getLogger(__name__)
DEFAULT_PERMISSIONS = 0o600

View File

@ -1,18 +1,9 @@
# Copyright (C) 2018 Avatao.com Innovative Learning Kft.
# All Rights Reserved. See LICENSE file for details.
from .directory_monitoring_event_handler import DirectoryMonitoringEventHandler
from .process_managing_event_handler import ProcessManagingEventHandler
from .terminal_event_handler import TerminalEventHandler
from .ide_event_handler import IdeEventHandler
from .history_monitor import HistoryMonitor, BashMonitor, GDBMonitor
from .terminal_commands import TerminalCommands
from .log_monitoring_event_handler import LogMonitoringEventHandler
from .fsm_managing_event_handler import FSMManagingEventHandler
from .snapshot_provider import SnapshotProvider
from .pipe_io_event_handler import PipeIOEventHandlerBase, PipeIOEventHandler, PipeIOServer
from .pipe_io_event_handler import TransformerPipeIOEventHandler, CommandEventHandler
from .directory_snapshotting_event_handler import DirectorySnapshottingEventHandler
from .commands_equal import CommandsEqual
from .frontend_event_handler import FrontendEventHandler
from .file_manager import FileManager
from .history_monitor import HistoryMonitor, BashMonitor, GDBMonitor
from .message_sender import MessageSender
from .snapshot_provider import SnapshotProvider
from .terminal_commands import TerminalCommands

View File

@ -0,0 +1 @@
from .file_manager import FileManager

View File

@ -1 +0,0 @@
from .ide_event_handler import IdeEventHandler