Exemple #1
0
def request(requestid, mw=None):
    global _request_id
    _request_id = requestid
    rl = twc.core.request_local()
    rl.clear()
    rl['middleware'] = mw
    return tw2test.request_local_tst()
Exemple #2
0
def request(requestid, mw=None):
    base._request_id = requestid
    rl = twc.core.request_local()
    rl.clear()
    rl['middleware'] = mw
    return base.request_local_tst()
Exemple #3
0
def request(requestid, mw=None):
    base._request_id = requestid
    rl = twc.core.request_local()
    rl.clear()
    rl['middleware'] = mw
    return base.request_local_tst()