From b635a5d93d594d3cbcadb82b3d323f0396a7c92f Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 15 Nov 2016 21:02:57 +0800 Subject: webui: Rename "FG21simWSHandler" to "WSHandler" --- fg21sim/webui/app.py | 4 ++-- fg21sim/webui/handlers/__init__.py | 2 +- fg21sim/webui/handlers/websocket.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'fg21sim/webui') diff --git a/fg21sim/webui/app.py b/fg21sim/webui/app.py index 199e2d6..9f8092e 100644 --- a/fg21sim/webui/app.py +++ b/fg21sim/webui/app.py @@ -16,7 +16,7 @@ import os import tornado.web from tornado.web import url -from .handlers import IndexHandler, LoginHandler, FG21simWSHandler +from .handlers import IndexHandler, LoginHandler, WSHandler from .utils import gen_cookie_secret from ..configs import ConfigManager @@ -45,7 +45,7 @@ class Application(tornado.web.Application): handlers = [ url(r"/", IndexHandler, name="index"), url(r"/login", LoginHandler, name="login"), - url(r"/ws", FG21simWSHandler), + url(r"/ws", WSHandler), ] # Application settings settings = { diff --git a/fg21sim/webui/handlers/__init__.py b/fg21sim/webui/handlers/__init__.py index 0c01ea7..0eb3818 100644 --- a/fg21sim/webui/handlers/__init__.py +++ b/fg21sim/webui/handlers/__init__.py @@ -3,4 +3,4 @@ from .index import IndexHandler from .login import LoginHandler -from .websocket import FG21simWSHandler +from .websocket import WSHandler diff --git a/fg21sim/webui/handlers/websocket.py b/fg21sim/webui/handlers/websocket.py index 941dd39..7f57389 100644 --- a/fg21sim/webui/handlers/websocket.py +++ b/fg21sim/webui/handlers/websocket.py @@ -31,7 +31,7 @@ from ..utils import get_host_ip, ip_in_network logger = logging.getLogger(__name__) -class FG21simWSHandler(tornado.websocket.WebSocketHandler): +class WSHandler(tornado.websocket.WebSocketHandler): """ WebSocket for bi-directional communication between the Web UI and the server, which can deal with the configurations and execute the -- cgit v1.2.2