Added the ability to trigger functions before the first request to the application

This commit is contained in:
Armin Ronacher 2011-08-07 12:43:38 +02:00
parent 5500986971
commit 02a1317460
4 changed files with 74 additions and 2 deletions

View file

@ -21,6 +21,8 @@ Relase date to be decided, codename to be chosen.
- Flask in debug mode will now complain with an assertion error if a view
was attached after the first request was handled. This gives earlier
feedback when users forget to import view code ahead of time.
- Added the ability to register callbacks that are only triggered once at
the beginning of the first request. (:meth:`Flask.before_first_request`)
Version 0.7.3
-------------