Пример #1
0
    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)
Пример #2
0
 def finish():
     ## Adding the json list to the response element
     newson = jsoner()
     ##print newson
     callback(newson)