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()
def request(requestid, mw=None): base._request_id = requestid rl = twc.core.request_local() rl.clear() rl['middleware'] = mw return base.request_local_tst()