Browse Source

Merge branch 'master' of github.com:mitsuhiko/flask

pull/280/merge
Armin Ronacher 14 years ago
parent
commit
f8b9f4d41c
  1. 2
      docs/tutorial/dbcon.rst
  2. 2
      flask/app.py
  3. 1
      flask/ctx.py

2
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

2
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.

1
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

Loading…
Cancel
Save