Browse Source

Reword 0.9 upgrade doc, thanks to plaes on #pocoo.

pull/497/head
Ron DuPlain 13 years ago
parent
commit
10c34e6652
  1. 11
      docs/upgrading.rst

11
docs/upgrading.rst

@ -34,11 +34,12 @@ the old behavior, you can add it easily by subclassing Flask::
return self.response_class(*rv)
return Flask.make_response(self, rv)
If you have an extension that was using :data:`~flask._request_ctx_stack`
before, please consider changing to :data:`~flask._app_ctx_stack` if it
makes sense for your extension. This will for example be the case for
extensions that connect to databases. This will allow your users to
easier use your extension with more complex use cases outside of requests.
If you maintain an extension that was using :data:`~flask._request_ctx_stack`
before, please consider changing to :data:`~flask._app_ctx_stack` if it makes
sense for your extension. For instance, the app context stack makes sense for
extensions which connect to databases. Using the app context stack instead of
the request stack will make extensions more readily handle use cases outside of
requests.
Version 0.8
-----------

Loading…
Cancel
Save