Hello, There is a way for seeing if flash method is use or counting flash message before a redirect? Thanks :) Cordialement, Beugin Thomas
On Sat, 2010-11-13 at 11:43 +0100, Thomas Beugin wrote: > Hello, > > There is a way for seeing if flash method is use or counting flash > message before a redirect? > > > Thanks :) > > > Cordialement, > Beugin Thomas Untested: @app.contextmanager def hook_flashes(): def wrapper(*args, **kwargs): do_hook_stuff() return get_flashed_messages(*args, **kwargs) return dict(get_flashed_messages=wrapper)