mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2025-01-15 21:51:57 +00:00
Comply new import API
This commit is contained in:
parent
32fca7206c
commit
d44515c3d1
@ -1,12 +1,9 @@
|
|||||||
from tornado.ioloop import IOLoop
|
from tornado.ioloop import IOLoop
|
||||||
|
|
||||||
from tfw.components.source_code_event_handler import SourceCodeEventHandler
|
from tfw.components import SourceCodeEventHandler, TerminadoEventHandler, ProcessManagingEventHandler, BashMonitor
|
||||||
from tfw.components.terminado_event_handler import TerminadoEventHandler
|
from tfw.networking import MessageSender
|
||||||
from tfw.components.process_managing_event_handler import ProcessManagingEventHandler
|
from tfw.networking.event_handlers import ServerUplinkConnector
|
||||||
from tfw.components.history_monitor import BashMonitor
|
|
||||||
from tfw.config import TFWENV
|
from tfw.config import TFWENV
|
||||||
from tfw.message_sender import MessageSender
|
|
||||||
from tfw.networking.event_handlers.server_connector import ServerUplinkConnector
|
|
||||||
from tfw.config.logs import logging
|
from tfw.config.logs import logging
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
@ -43,7 +40,8 @@ toggle_next.button_state = False
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
ide = SourceCodeEventHandler(key='webide', allowed_directories=[TFWENV.WEBIDE_WD], directory=TFWENV.WEBIDE_WD, exclude=['*.pyc'])
|
ide = SourceCodeEventHandler(key='webide', allowed_directories=[TFWENV.WEBIDE_WD],
|
||||||
|
directory=TFWENV.WEBIDE_WD, exclude=['*.pyc'])
|
||||||
terminado = TerminadoEventHandler(key='shell', monitor=BashMonitor(TFWENV.HISTFILE))
|
terminado = TerminadoEventHandler(key='shell', monitor=BashMonitor(TFWENV.HISTFILE))
|
||||||
terminado.historymonitor.subscribe_callback(cenator)
|
terminado.historymonitor.subscribe_callback(cenator)
|
||||||
terminado.historymonitor.subscribe_callback(selectdir)
|
terminado.historymonitor.subscribe_callback(selectdir)
|
||||||
|
@ -4,9 +4,10 @@ import tornado
|
|||||||
from tornado.ioloop import IOLoop
|
from tornado.ioloop import IOLoop
|
||||||
|
|
||||||
from sql_injection_fsm import SQLInjectionFSM
|
from sql_injection_fsm import SQLInjectionFSM
|
||||||
from tfw.networking.server.tfw_server import TFWServer
|
from tfw.networking.server import TFWServer
|
||||||
from tfw.config import TFWENV
|
from tfw.config import TFWENV
|
||||||
from tfw.config.logs import logging
|
from tfw.config.logs import logging
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user