Skip to content
Myr

Merge pull request #417 from tarruda/master

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

Fixed assumption made on session implementations

authored by Ron DuPlain · committed by Ron DuPlain · parents 9ab41ed, 8445f0d · Browse files · 1 file+3 added−1 removed
This commit

State

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

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:flask/helpers.py+3 added-1 removed
281 unmodified lines
282 ``'error'`` for errors, ``'info'`` for information283 messages and ``'warning'`` for warnings. However any284 kind of string can be used as category.285 """286 session.setdefault('_flashes', []).append((category, message))286 flashes = session.get('_flashes', [])287 flashes.append((category, message))288 session['_flashes'] = flashes289290291def get_flashed_messages(with_categories=False, category_filter=[]):292 """Pulls all flashed messages from the session and returns them.
445 unmodified lines