mirror of https://github.com/pallets/flask.git
Fix reqcontext ref in signals doc.
This commit is contained in:
parent
492ef06bff
commit
f07199009c
|
|
@ -162,11 +162,11 @@ function, you can pass ``current_app._get_current_object()`` as sender.
|
||||||
Signals and Flask's Request Context
|
Signals and Flask's Request Context
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
|
||||||
Signals fully support :ref:`reqcontext` when receiving signals. Context-local
|
Signals fully support :ref:`request-context` when receiving signals.
|
||||||
variables are consistently available between :data:`~flask.request_started` and
|
Context-local variables are consistently available between
|
||||||
:data:`~flask.request_finished`, so you can rely on :class:`flask.g` and others
|
:data:`~flask.request_started` and :data:`~flask.request_finished`, so you can
|
||||||
as needed. Note the limitations described in :ref:`signals-sending` and the
|
rely on :class:`flask.g` and others as needed. Note the limitations described
|
||||||
:data:`~flask.request_tearing_down` signal.
|
in :ref:`signals-sending` and the :data:`~flask.request_tearing_down` signal.
|
||||||
|
|
||||||
|
|
||||||
Decorator Based Signal Subscriptions
|
Decorator Based Signal Subscriptions
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue