Skip to content
Myr

Documented new signal message_flashed

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 5997890 · Browse files · 3 files+27 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+27 added−0 removed

  • other:+27 added−0 removed

3 files+27 added−0 removed

modified:docs/api.rst+8 added
522 unmodified lines
523 application context. This is always called, even if an error happened.524 An `exc` keyword argument is passed with the exception that caused the525 teardown.526527.. data:: message_flashed528529 This signal is sent when the application is flashing a message. The530 messages is sent as `message` keyword argument and the category as531 `category`.532533 .. versionadded:: 0.10534535.. currentmodule:: None536537.. class:: flask.signals.Namespace538
168 unmodified lines
modified:docs/signals.rst+18 added
289 unmodified lines
290291 This will also be passed an `exc` keyword argument that has a reference292 to the exception that caused the teardown if there was one.293294.. data:: flask.message_flashed295 :noindex:296297 This signal is sent when the application is flashing a message. The298 messages is sent as `message` keyword argument and the category as299 `category`.300301 Example subscriber::302303 recorded = []304 def record(sender, message, category, **extra):305 recorded.append((message, category))306307 from flask import message_flashed308 message_flashed.connect(record, app)309310 .. versionadded:: 0.10311312.. _blinker: http://pypi.python.org/pypi/blinker
modified:CHANGES+1 added
49 unmodified lines
50- Added a workaround for chrome's cookies in localhost not working51 as intended with domain names.52- Changed logic for picking defaults for cookie values from sessions53 to work better with Google Chrome.54- Added `message_flashed` signal that simplifies flashing testing.5556Version 0.957-----------58
365 unmodified lines