baseimage-tutorial-framework/src/controller/handlers/solution_check_handler.py

12 lines
349 B
Python
Raw Normal View History

2018-02-08 15:26:28 +00:00
from tornado.web import RequestHandler
class SolutionCheckHandler(RequestHandler):
def initialize(self, solvable_connector):
self.solvable_connector = solvable_connector
def get(self):
self.solvable_connector.send('solution_check', {})
resp_key, resp_data = self.solvable_connector.recv()
return resp_data