From f29ec355e99e052f98df46875aeb8e319b8e1beb Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 7 Jul 2011 13:14:15 +0200 Subject: [PATCH] Backwards compatibility import --- docs/upgrading.rst | 10 ++++++++++ flask/__init__.py | 3 +++ 2 files changed, 13 insertions(+) diff --git a/docs/upgrading.rst b/docs/upgrading.rst index df084e51..154b51a7 100644 --- a/docs/upgrading.rst +++ b/docs/upgrading.rst @@ -19,6 +19,16 @@ installation, make sure to pass it the ``-U`` parameter:: $ easy_install -U Flask +Version 0.8 +----------- + +Flask introduced a new session interface system. We also noticed that +there was a naming collision between `flask.session` the module that +implements sessions and :data:`flask.session` which is the global session +object. With that introduction we moved the implementation details for +the session system into a new module called :mod:`flask.sessions`. If you +used the previously undocumented session support we urge you to upgrade. + Version 0.7 ----------- diff --git a/flask/__init__.py b/flask/__init__.py index 930859da..88bf40e8 100644 --- a/flask/__init__.py +++ b/flask/__init__.py @@ -35,3 +35,6 @@ from .signals import signals_available, template_rendered, request_started, \ # only import json if it's available if json_available: from .helpers import json + +# backwards compat, goes away in 1.0 +from .sessions import SecureCookieSession as Session