|
@@ -62,7 +62,7 @@ class BeeWatchServer(digilib.network.Server):
|
|
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
|
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
|
return s
|
|
return s
|
|
|
|
|
|
-class ConnHandlerBeeWatch(digilib.network.ConnHandlerBase):
|
|
|
|
|
|
+class ConnHandlerBeeWatch(digilib.network.ConnHandler):
|
|
"""
|
|
"""
|
|
Connection handler for the beewatch server. Applies permission system,
|
|
Connection handler for the beewatch server. Applies permission system,
|
|
parses commands and tells apis what to do.
|
|
parses commands and tells apis what to do.
|
|
@@ -74,7 +74,7 @@ class ConnHandlerBeeWatch(digilib.network.ConnHandlerBase):
|
|
"""
|
|
"""
|
|
The handle method parses commands and responds if a command was not
|
|
The handle method parses commands and responds if a command was not
|
|
found. It executes synchronous and asynchronous methods correctly and
|
|
found. It executes synchronous and asynchronous methods correctly and
|
|
- logs the traceback if an exception occured.
|
|
|
|
|
|
+ logs the traceback if an exception occured.
|
|
"""
|
|
"""
|
|
data = data.strip()
|
|
data = data.strip()
|
|
data = data.split(" ")
|
|
data = data.split(" ")
|