Open antipooh opened 12 years ago
Why issue closed? I have the same problem ...
Because I can not reproduce it. Works without any problems on Tornado 2.4.1.
I see the Runner class of tornado 2.4.1 and has a new parameter in init:
def __init__(self, gen, deactivate_stack_context):
SyncRunner calls the super init in this way:
super(SyncRunner, self).__init__(gen)
I think this is the problem.
Ah, this is interoperability issue between engine
and sync_engine
. gen.py example works because it is using sync_engine
.
Edit: If you don't care about executing actions in order, feel free to use standard tornado.gen.engine
I think i'm using sync_engine too. In my class:
class MeteoDataSetAPI(SocketConnection):
...
@gen.sync_engine
def on_event(self, name, *args, **kwargs):
return super(MeteoDataSetAPI, self).on_event(name, *args, **kwargs)
Is it right?
On run example gen.py on tornado 2.3 raised exception
I replace in file tornadio2/gen.py line 84 from
on
I think class SyncRunner no more need