def new_connect(self, num): """Event implementation Because on_event() was wrapped with ``gen.sync_engine``, yield will be treated as asynchronous task. """ remake_json=jsoner() response = yield gen.Task(self.long_running, remake_json) self.emit('response', response)
def finish(): ## Adding the json list to the response element newson = jsoner() ##print newson callback(newson)