Skip to content
Myr

More documentation updates for 0.9

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 32f845e · Browse files · 2 files+9 added−1 removed
This commit

State

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

Diff stats

2 files+9 added−1 removed

  • other:+9 added−1 removed

2 files+9 added−1 removed

modified:docs/extensiondev.rst+3 added-1 removed
222 unmodified lines
223 handler and if it does not exist, falls back to the request context224 one.2253. Next, we define a ``connect`` method that opens a database connection.2264. Finally, we add a ``connection`` property that on first access opens227 the database connection and stores it on the context.227 the database connection and stores it on the context. This is also228 the recommended way to handling resources: fetch resources lazily the229 first time they are used.230231 Note here that we're attaching our database connection to the top232 application context via ``_app_ctx_stack.top``. Extensions should use233 the top context for storing their own information with a sufficiently
188 unmodified lines
modified:docs/upgrading.rst+6 added
32 unmodified lines
33 if isinstance(rv, tuple):34 return self.response_class(*rv)35 return Flask.make_response(self, rv)3637If you have an extension that was using :data:`~flask._request_ctx_stack`38before, please consider changing to :data:`~flask._app_ctx_stack` if it39makes sense for your extension. This will for example be the case for40extensions that connect to databases. This will allow your users to41easier use your extension with more complex use cases outside of requests.4243Version 0.844-----------4546Flask introduced a new session interface system. We also noticed that
299 unmodified lines