test of static interface
This commit is contained in:
parent
fa4dd2229c
commit
a0e69d859d
1 changed files with 5 additions and 0 deletions
|
|
@ -42,12 +42,17 @@ class JsonrpcBackend(Backend):
|
|||
if config["backends"]["jsonrpc"]["port"]:
|
||||
self.port = config["backends"]["jsonrpc"]["port"]
|
||||
|
||||
ServerHandler.interface = interface
|
||||
|
||||
def run(self):
|
||||
while True:
|
||||
server = createserver(host=self.host, port=self.port, handler_factory=ServerHandler).serve()
|
||||
|
||||
|
||||
class ServerHandler(BaseHandler):
|
||||
|
||||
interface = None
|
||||
|
||||
def time(self):
|
||||
return time.time()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue