diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-14 15:53:53 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-14 15:53:53 +0800 |
commit | 3d3b662ce0eb40ed91c0d1a6466dbcd9e42d2abf (patch) | |
tree | 63230d58e23baf9af64f3dec250dda71bf95fd17 /fg21sim/webui/websocket.py | |
parent | 013c815abfa4fd0391b79b2653d989588b170e86 (diff) | |
download | fg21sim-3d3b662ce0eb40ed91c0d1a6466dbcd9e42d2abf.tar.bz2 |
webui: Replace "make_application()" with Application class
Diffstat (limited to 'fg21sim/webui/websocket.py')
-rw-r--r-- | fg21sim/webui/websocket.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fg21sim/webui/websocket.py b/fg21sim/webui/websocket.py index 53d2da4..dffd864 100644 --- a/fg21sim/webui/websocket.py +++ b/fg21sim/webui/websocket.py @@ -26,7 +26,6 @@ from tornado.options import options from .consolehandler import ConsoleHandler from .utils import get_host_ip, ip_in_network -from ..configs import ConfigManager from ..errors import ConfigError @@ -101,7 +100,7 @@ class FG21simWSHandler(tornado.websocket.WebSocketHandler): # FIXME: # * better to move to the `Application` class ?? # * or create a ``ConfigsHandler`` similar to the ``ConsoleHandler`` - self.configs = ConfigManager() + self.configs = self.application.configmanager self.console_handler = ConsoleHandler(websocket=self) # logger.info("WebSocket: {0}: opened".format(self.name)) |