diff options
author | 2018-02-18 11:21:57 +0000 | |
---|---|---|
committer | 2018-02-18 11:21:57 +0000 | |
commit | 218db5222983b2b102b5f32a77845468cdaf9dab (patch) | |
tree | b9eb2601f90ddcb9c1226f0aa8493aa34c7111be /pysite/route_manager.py | |
parent | Go back to using wss:// for the WS test (diff) |
Rename "Websocket" to "WS" to avoid confusion with the gevents-websocket WebSocket class
Diffstat (limited to 'pysite/route_manager.py')
-rw-r--r-- | pysite/route_manager.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pysite/route_manager.py b/pysite/route_manager.py index b3f71643..739af726 100644 --- a/pysite/route_manager.py +++ b/pysite/route_manager.py @@ -9,7 +9,7 @@ from flask_sockets import Sockets from pysite.base_route import APIView, BaseView, ErrorView, RouteView from pysite.database import RethinkDB -from pysite.websockets import Websocket +from pysite.websockets import WS TEMPLATES_PATH = "../templates" STATIC_PATH = "../static" @@ -82,10 +82,10 @@ class RouteManager: cls is not ErrorView and cls is not RouteView and cls is not APIView and - cls is not Websocket and + cls is not WS and ( - BaseView in cls.__mro__ or - Websocket in cls.__mro__ + BaseView in cls.__mro__ or + WS in cls.__mro__ ) ): cls.setup(self, blueprint) |