forked from orbit-oss/flask
flask.g is now on the app context and not the request context
This commit is contained in:
parent
61d43c7f12
commit
1949c4a9ab
9 changed files with 71 additions and 20 deletions
|
|
@ -36,6 +36,13 @@ extensions for tuples and strings with HTML markup.
|
|||
In order to not break people's sessions it is possible to continue using
|
||||
the old session system by using the `Flask-OldSessions_` extension.
|
||||
|
||||
Flask also started storing the :data:`flask.g` object on the application
|
||||
context instead of the request context. This change should be transparent
|
||||
for you but it means that you now can store things on the ``g`` object
|
||||
when there is no request context yet but an application context. The old
|
||||
``flask.Flask.request_globals_class`` attribute was renamed to
|
||||
:attr:`flask.Flask.app_ctx_globals_class`.
|
||||
|
||||
.. _Flask-OldSessions: http://packages.python.org/Flask-OldSessions/
|
||||
|
||||
Version 0.9
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue