Move mixins and decorators to tfw module from tfw.components

This commit is contained in:
Kristóf Tóth 2018-04-14 21:15:30 +02:00
parent e2bb126e6f
commit 1c29b700c2
10 changed files with 6 additions and 6 deletions

View File

@ -6,8 +6,8 @@ from functools import wraps
from watchdog.events import FileSystemEventHandler as FileSystemWatchdogEventHandler from watchdog.events import FileSystemEventHandler as FileSystemWatchdogEventHandler
from tfw.networking.event_handlers import ServerUplinkConnector from tfw.networking.event_handlers import ServerUplinkConnector
from tfw.components.decorators import RateLimiter from tfw.decorators import RateLimiter
from tfw.components.mixins import ObserverMixin from tfw.mixins import ObserverMixin
from tfw.config.logs import logging from tfw.config.logs import logging

View File

@ -8,8 +8,8 @@ from abc import ABC, abstractmethod
from watchdog.events import PatternMatchingEventHandler from watchdog.events import PatternMatchingEventHandler
from tfw.components.mixins import CallbackMixin, ObserverMixin from tfw.mixins import CallbackMixin, ObserverMixin
from tfw.components.decorators import RateLimiter from tfw.decorators import RateLimiter
class CallbackEventHandler(PatternMatchingEventHandler, ABC): class CallbackEventHandler(PatternMatchingEventHandler, ABC):

View File

@ -4,7 +4,7 @@
from xmlrpc.client import Fault as SupervisorFault from xmlrpc.client import Fault as SupervisorFault
from tfw import TriggerlessEventHandler from tfw import TriggerlessEventHandler
from tfw.components.mixins import SupervisorMixin from tfw.mixins import SupervisorMixin
from tfw.config.logs import logging from tfw.config.logs import logging
from .directory_monitor import with_monitor_paused from .directory_monitor import with_monitor_paused

View File

@ -5,7 +5,7 @@ from typing import List
from transitions import Machine from transitions import Machine
from tfw.components.mixins import CallbackMixin from tfw.mixins import CallbackMixin
class FSMBase(CallbackMixin): class FSMBase(CallbackMixin):