def get_request():
    request = request_accessor.send(None)
    if request:
        return request[0][1]
    return None
Get the current request from anywhere.
dataset/ETHPy150Open tonioo/modoboa/modoboa/lib/signals.py/get_request