Fixed imports after Routing merge
This commit is contained in:
parent
9ae687e35d
commit
80f984ab28
1 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,4 @@
|
||||||
import Logging
|
import Logging
|
||||||
import Routing
|
|
||||||
import Config
|
import Config
|
||||||
|
|
||||||
from .Broadcast import Broadcast
|
from .Broadcast import Broadcast
|
||||||
|
@ -16,10 +15,10 @@ from wsgiref.simple_server import make_server
|
||||||
from ws4py.server.wsgirefserver import WSGIServer, WebSocketWSGIRequestHandler
|
from ws4py.server.wsgirefserver import WSGIServer, WebSocketWSGIRequestHandler
|
||||||
from ws4py.server.wsgiutils import WebSocketWSGIApplication
|
from ws4py.server.wsgiutils import WebSocketWSGIApplication
|
||||||
|
|
||||||
from Highway import Server
|
from Highway import Server, Route
|
||||||
|
|
||||||
|
|
||||||
class Info(Routing.Route):
|
class Info(Route):
|
||||||
def run(self, data, handler):
|
def run(self, data, handler):
|
||||||
handler.send({"routes" : list(handler.routes.keys())}, "info")
|
handler.send({"routes" : list(handler.routes.keys())}, "info")
|
||||||
|
|
||||||
|
@ -65,7 +64,7 @@ class Compile:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class StdStream(Routing.Route):
|
class StdStream(Route):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.stream_to = {}
|
self.stream_to = {}
|
||||||
|
|
||||||
|
@ -80,7 +79,7 @@ class StdStream(Routing.Route):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Subscribe(Routing.Route):
|
class Subscribe(Route):
|
||||||
EDITOR = 1
|
EDITOR = 1
|
||||||
WALLABY = 2
|
WALLABY = 2
|
||||||
WEB = 3
|
WEB = 3
|
||||||
|
|
Reference in a new issue