aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-15 21:02:57 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-15 21:02:57 +0800
commitb635a5d93d594d3cbcadb82b3d323f0396a7c92f (patch)
treeb2353278706016164170b5ce39c4bd017e8af5af /fg21sim/webui
parent81d8455ce56e6c94f3f97089255ed155489764e9 (diff)
downloadfg21sim-b635a5d93d594d3cbcadb82b3d323f0396a7c92f.tar.bz2
webui: Rename "FG21simWSHandler" to "WSHandler"
Diffstat (limited to 'fg21sim/webui')
-rw-r--r--fg21sim/webui/app.py4
-rw-r--r--fg21sim/webui/handlers/__init__.py2
-rw-r--r--fg21sim/webui/handlers/websocket.py2
3 files changed, 4 insertions, 4 deletions
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