Updated AUTHORS file and added missing versionadded
This commit is contained in:
parent
7a4b608839
commit
50bca8c2d3
3 changed files with 14 additions and 0 deletions
9
AUTHORS
9
AUTHORS
|
|
@ -12,3 +12,12 @@ Patches and Suggestions
|
||||||
- Chris Edgemon
|
- Chris Edgemon
|
||||||
- Chris Grindstaff
|
- Chris Grindstaff
|
||||||
- Florent Xicluna
|
- Florent Xicluna
|
||||||
|
- Georg Brandl
|
||||||
|
- Justin Quick
|
||||||
|
- Kenneth Reitz
|
||||||
|
- Marian Sigler
|
||||||
|
- Ron DuPlain
|
||||||
|
- Sebastien Estienne
|
||||||
|
- Simon Sapin
|
||||||
|
- Stephane Wirtel
|
||||||
|
- Zhao Xiaohong
|
||||||
|
|
|
||||||
3
CHANGES
3
CHANGES
|
|
@ -8,6 +8,9 @@ Version 0.4
|
||||||
|
|
||||||
Release date to be announced, codename to be selected.
|
Release date to be announced, codename to be selected.
|
||||||
|
|
||||||
|
- added the ability to register application wide error handlers
|
||||||
|
from modules.
|
||||||
|
|
||||||
Version 0.3.1
|
Version 0.3.1
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|
|
||||||
2
flask.py
2
flask.py
|
|
@ -615,6 +615,8 @@ class Module(_PackageBoundObject):
|
||||||
def app_errorhandler(self, code):
|
def app_errorhandler(self, code):
|
||||||
"""Like :meth:`Flask.errorhandler` but for a module. This
|
"""Like :meth:`Flask.errorhandler` but for a module. This
|
||||||
handler is used for all requests, even if outside of the module.
|
handler is used for all requests, even if outside of the module.
|
||||||
|
|
||||||
|
.. versionadded:: 0.4
|
||||||
"""
|
"""
|
||||||
def decorator(f):
|
def decorator(f):
|
||||||
self._record(lambda s: s.app.errorhandler(code)(f))
|
self._record(lambda s: s.app.errorhandler(code)(f))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue