This commit is contained in:
Maximilian Hils
2015-02-07 16:26:19 +01:00
parent 0d608c1fb3
commit 53fadd05f4
4 changed files with 35 additions and 22 deletions

View File

@@ -36,7 +36,7 @@ class ScriptContext:
Replay the request on the current flow. The response will be added
to the flow object.
"""
self._master.replay_request(f)
return self._master.replay_request(f, block=True, run_scripthooks=False)
@property
def app_registry(self):
@@ -139,8 +139,12 @@ def _handle_concurrent_reply(fn, o, *args, **kwargs):
def run():
fn(*args, **kwargs)
o.reply() # If the script did not call .reply(), we have to do it now.
threading.Thread(target=run, name="ScriptThread").start()
reply_proxy() # If the script did not call .reply(), we have to do it now.
ScriptThread(target=run).start()
class ScriptThread(threading.Thread):
name = "ScriptThread"
def concurrent(fn):