From fd679638ea991fbdd5d7318bc9451f0bd5532224 Mon Sep 17 00:00:00 2001 From: Jesse Dubay Date: Mon, 11 Jul 2011 15:25:37 -0700 Subject: [PATCH 1/3] typo fix: flask -> flag --- flask/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask/app.py b/flask/app.py index 48369ee4..47254bed 100644 --- a/flask/app.py +++ b/flask/app.py @@ -112,7 +112,7 @@ class Flask(_PackageBoundObject): #: configuration key. Defaults to `False`. debug = ConfigAttribute('DEBUG') - #: The testing flask. Set this to `True` to enable the test mode of + #: The testing flag. Set this to `True` to enable the test mode of #: Flask extensions (and in the future probably also Flask itself). #: For example this might activate unittest helpers that have an #: additional runtime cost which should not be enabled by default. From 1a249e338927efe58228bc70bfa3cf754526ff8a Mon Sep 17 00:00:00 2001 From: consigliere Date: Mon, 11 Jul 2011 15:28:11 -0700 Subject: [PATCH 2/3] Corrected decorators to remove duplicate teardown_request() and add after_request() --- docs/tutorial/dbcon.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/dbcon.rst b/docs/tutorial/dbcon.rst index 8f9e4595..b19cb14c 100644 --- a/docs/tutorial/dbcon.rst +++ b/docs/tutorial/dbcon.rst @@ -9,7 +9,7 @@ connection in all our functions so it makes sense to initialize them before each request and shut them down afterwards. Flask allows us to do that with the :meth:`~flask.Flask.before_request`, -:meth:`~flask.Flask.teardown_request` and :meth:`~flask.Flask.teardown_request` +:meth:`~flask.Flask.after_request` and :meth:`~flask.Flask.teardown_request` decorators:: @app.before_request From 7dcf6cbc3141d100e229b4a781f67ab1286af055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Bartoszkiewicz?= Date: Tue, 12 Jul 2011 21:51:53 +0200 Subject: [PATCH 3/3] Don't use deprecated flask.session in flask.ctx. --- flask/ctx.py | 1 - 1 file changed, 1 deletion(-) diff --git a/flask/ctx.py b/flask/ctx.py index a189b28f..0943d10a 100644 --- a/flask/ctx.py +++ b/flask/ctx.py @@ -12,7 +12,6 @@ from werkzeug.exceptions import HTTPException from .globals import _request_ctx_stack -from .session import _NullSession from .module import blueprint_is_module