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
Provenance
- Commit
514fc6b- Tree
c7ec5b7- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent 1
8b4fd5d- Parent 2
81798b4
5 files changed+8 added−8 removed
modified:docs/blueprints.rst+2 added-2 removed
292 unmodified lines293 @simple_page.errorhandler(404)294 def page_not_found(e):295 return render_template('pages/404.html')296 297-Most errorhandlers will simply work as expected; however, there is a caveat298-concerning handlers for 404 and 405 exceptions. These errorhandlers are only297+Most error handlers will simply work as expected; however, there is a caveat298+concerning handlers for 404 and 405 exceptions. These error handlers are only299 invoked from an appropriate ``raise`` statement or a call to ``abort`` in another300 of the blueprint's view functions; they are not invoked by, e.g., an invalid URL301 access. This is because the blueprint does not "own" a certain URL space, so302 the application instance has no way of knowing which blueprint error handler it13 unmodified linesmodified:docs/errorhandling.rst+1 added-1 removed
9 unmodified lines10 - 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 linesmodified:src/flask/sansio/README.md+1 added-1 removed
1123456# Sansio# Sans-IO
This folder contains code that can be used by alternative Flaskimplementations, for example Quart. The code therefore cannot do anyIO, nor be part of a likely IO path. Finally this code cannot use theFlask globals.modified:src/flask/app.py+2 added-2 removed
1236 unmodified lines1237 ``bytes``1238 A response object is created with the bytes as the body.1239 1240 ``dict``1241- A dictionary that will be jsonify'd before being returned.1241+ Converted to a JSON response.1242 1243 ``list``1244- A list that will be jsonify'd before being returned.1244+ Converted to a JSON response.1245 1246 ``generator`` or ``iterator``1247 A generator that returns ``str`` or ``bytes`` to be1248 streamed as the response.377 unmodified linesmodified:CHANGES.rst+2 added-2 removed
1601 unmodified lines1602 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.1608 1609 1610 Version 0.3.127 unmodified lines1638 1639 Version 0.21640 -----------1641 1642-Released 2010-05-12, codename J?germeister1642+Released 2010-05-12, codename Jägermeister1643 1644 - Various bugfixes1645 - Integrated JSON support1646 - Added ``get_template_attribute`` helper function.19 unmodified lines