Skip to content
Myr

Merge branch 'stable'

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

authored by David Lord · committed by David Lord · parents 8b4fd5d, 81798b4 · Browse files · 5 files+8 added−8 removed
This commit

State

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

Diff stats

5 files+8 added−8 removed

  • other:+8 added−8 removed

5 files+8 added−8 removed

modified:docs/blueprints.rst+2 added-2 removed
292 unmodified lines
293 @simple_page.errorhandler(404)294 def page_not_found(e):295 return render_template('pages/404.html')296297Most errorhandlers will simply work as expected; however, there is a caveat298concerning handlers for 404 and 405 exceptions. These errorhandlers are only297Most error handlers will simply work as expected; however, there is a caveat298concerning handlers for 404 and 405 exceptions. These error handlers are only299invoked from an appropriate ``raise`` statement or a call to ``abort`` in another300of the blueprint's view functions; they are not invoked by, e.g., an invalid URL301access. This is because the blueprint does not "own" a certain URL space, so302the application instance has no way of knowing which blueprint error handler it
13 unmodified lines
modified:docs/errorhandling.rst+1 added-1 removed
9 unmodified lines
10- the client terminated the request early and the application was still11 reading from the incoming data12- the database server was overloaded and could not handle the query13- a filesystem is full14- a harddrive crashed14- a hard drive crashed15- a backend server overloaded16- a programming error in a library you are using17- network connection of the server to another system failed18
505 unmodified lines
modified:src/flask/sansio/README.md+1 added-1 removed
modified:src/flask/app.py+2 added-2 removed
1236 unmodified lines
1237 ``bytes``1238 A response object is created with the bytes as the body.12391240 ``dict``1241 A dictionary that will be jsonify'd before being returned.1241 Converted to a JSON response.12421243 ``list``1244 A list that will be jsonify'd before being returned.1244 Converted to a JSON response.12451246 ``generator`` or ``iterator``1247 A generator that returns ``str`` or ``bytes`` to be1248 streamed as the response.
377 unmodified lines
modified:CHANGES.rst+2 added-2 removed
1601 unmodified lines
1602 a little longer. This can also be used to trigger custom requests1603 that do not pop the request stack for testing.1604- Because the Python standard library caches loggers, the name of the1605 logger is configurable now to better support unittests.1606- Added ``TESTING`` switch that can activate unittesting helpers.1606- Added ``TESTING`` switch that can activate unit testing helpers.1607- The logger switches to ``DEBUG`` mode now if debug is enabled.160816091610Version 0.3.1
27 unmodified lines
16381639Version 0.21640-----------16411642Released 2010-05-12, codename J?germeister1642Released 2010-05-12, codename Jägermeister16431644- Various bugfixes1645- Integrated JSON support1646- Added ``get_template_attribute`` helper function.
19 unmodified lines