Skip to content
Myr

fix typos

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 · parent 30d1c5d · 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
1141 unmodified lines
1142 ``bytes``1143 A response object is created with the bytes as the body.11441145 ``dict``1146 A dictionary that will be jsonify'd before being returned.1146 Converted to a JSON response.11471148 ``list``1149 A list that will be jsonify'd before being returned.1149 Converted to a JSON response.11501151 ``generator`` or ``iterator``1152 A generator that returns ``str`` or ``bytes`` to be1153 streamed as the response.
383 unmodified lines
modified:CHANGES.rst+2 added-2 removed
1569 unmodified lines
1570 a little longer. This can also be used to trigger custom requests1571 that do not pop the request stack for testing.1572- Because the Python standard library caches loggers, the name of the1573 logger is configurable now to better support unittests.1574- Added ``TESTING`` switch that can activate unittesting helpers.1574- Added ``TESTING`` switch that can activate unit testing helpers.1575- The logger switches to ``DEBUG`` mode now if debug is enabled.157615771578Version 0.3.1
27 unmodified lines
16061607Version 0.21608-----------16091610Released 2010-05-12, codename J?germeister1610Released 2010-05-12, codename Jägermeister16111612- Various bugfixes1613- Integrated JSON support1614- Added ``get_template_attribute`` helper function.
19 unmodified lines