2024-03-03 17:15:23 +00:00
|
|
|
from __future__ import annotations
|
2019-11-28 11:40:45 +00:00
|
|
|
|
2024-03-03 17:15:23 +00:00
|
|
|
from blinker import Namespace
|
2019-11-28 11:40:45 +00:00
|
|
|
|
2024-03-03 17:15:23 +00:00
|
|
|
# This namespace is only for signals provided by Flask itself.
|
2019-11-28 11:40:45 +00:00
|
|
|
_signals = Namespace()
|
|
|
|
|
|
|
|
template_rendered = _signals.signal("template-rendered")
|
|
|
|
before_render_template = _signals.signal("before-render-template")
|
|
|
|
request_started = _signals.signal("request-started")
|
|
|
|
request_finished = _signals.signal("request-finished")
|
|
|
|
request_tearing_down = _signals.signal("request-tearing-down")
|
|
|
|
got_request_exception = _signals.signal("got-request-exception")
|
|
|
|
appcontext_tearing_down = _signals.signal("appcontext-tearing-down")
|
|
|
|
appcontext_pushed = _signals.signal("appcontext-pushed")
|
|
|
|
appcontext_popped = _signals.signal("appcontext-popped")
|
|
|
|
message_flashed = _signals.signal("message-flashed")
|