mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 21:55:13 +00:00
Make tfw.networking more structured, remove relative import hell
This commit is contained in:
0
lib/tfw/networking/event_handlers/__init__.py
Normal file
0
lib/tfw/networking/event_handlers/__init__.py
Normal file
@ -3,9 +3,9 @@ from functools import partial
|
||||
from zmq.eventloop import ioloop
|
||||
from zmq.eventloop.zmqstream import ZMQStream
|
||||
|
||||
from .serialization import serialize_all
|
||||
from ..config import PUBLISHER_PORT, RECEIVER_PORT
|
||||
from ..util import ZMQConnectorBase
|
||||
from tfw.networking.serialization import serialize_all
|
||||
from tfw.config import PUBLISHER_PORT, RECEIVER_PORT
|
||||
from tfw.util import ZMQConnectorBase
|
||||
|
||||
|
||||
ioloop.install()
|
0
lib/tfw/networking/server/__init__.py
Normal file
0
lib/tfw/networking/server/__init__.py
Normal file
@ -2,11 +2,11 @@ import zmq
|
||||
from zmq.eventloop import ioloop
|
||||
from zmq.eventloop.zmqstream import ZMQStream
|
||||
|
||||
from .serialization import serialize_all
|
||||
from ..config import PUBLISHER_PORT, RECEIVER_PORT
|
||||
from ..config.logs import logging
|
||||
from tfw.networking.serialization import serialize_all
|
||||
from tfw.config import PUBLISHER_PORT, RECEIVER_PORT
|
||||
from tfw.config.logs import logging
|
||||
log = logging.getLogger(__name__)
|
||||
from ..util import ZMQConnectorBase
|
||||
from tfw.util import ZMQConnectorBase
|
||||
|
||||
|
||||
ioloop.install()
|
@ -1,10 +1,9 @@
|
||||
import json
|
||||
|
||||
from tornado.websocket import WebSocketHandler
|
||||
|
||||
from .serialization import deserialize_all
|
||||
from .event_handler_connector import EventHandlerConnector
|
||||
from ..config.logs import logging
|
||||
from tfw.networking.serialization import deserialize_all
|
||||
from tfw.networking.server.event_handler_connector import EventHandlerConnector
|
||||
from tfw.config.logs import logging
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
Reference in New Issue
Block a user