Codebase list python-flask-session / fresh-releases/upstream
Import upstream version 0.3.2 Kali Janitor 3 years ago
6 changed file(s) with 18 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
+0
-3
.gitmodules less more
0 [submodule "docs/_themes"]
1 path = docs/_themes
2 url = [email protected]:mitsuhiko/flask-sphinx-themes.git
4747
4848 - SqlAlchemySessionInterface is using VARCHAR(255) to store session id now
4949 - SqlAlchemySessionInterface won't run `db.create_all` anymore
50
51 Version 0.3.2
52 `````````````
53
54 - Changed `werkzeug.contrib.cache` to `cachelib`
1818 # add these directories to sys.path here. If the directory is relative to the
1919 # documentation root, use os.path.abspath to make it absolute, like shown here.
2020 sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
21 sys.path.append(os.path.abspath('_themes'))
2221
2322 # -- General configuration ------------------------------------------------
2423
105104
106105 # The theme to use for HTML and HTML Help pages. See the documentation for
107106 # a list of builtin themes.
108 html_theme = 'flask_small'
107 html_theme = 'alabaster'
109108
110109 # Theme options are theme-specific and customize the look and feel of a theme
111110 # further. For a list of options available for each theme, see the
112111 # documentation.
113112 html_theme_options = {
114 'index_logo': 'flask-session.png',
115 'github_fork': 'fengsp/flask-session'
113 # 'logo': 'flask-session.png',
114 'github_button': True,
115 'github_user': 'fengsp',
116 'github_repo': 'flask-session',
116117 }
117118
118119 # Add any paths that contain custom themes here, relative to this directory.
119 html_theme_path = ['_themes']
120 #html_theme_path = ['_themes']
120121
121122 # The name for this set of Sphinx documents. If None, it defaults to
122123 # "<project> v<release> documentation".
88 :license: BSD, see LICENSE for more details.
99 """
1010
11 __version__ = '0.3.1'
11 __version__ = '0.3.2'
1212
1313 import os
1414
290290
291291
292292 class FileSystemSessionInterface(SessionInterface):
293 """Uses the :class:`werkzeug.contrib.cache.FileSystemCache` as a session
294 backend.
293 """Uses the :class:`cachelib.file.FileSystemCache` as a session backend.
295294
296295 .. versionadded:: 0.2
297296 The `use_signer` parameter was added.
309308
310309 def __init__(self, cache_dir, threshold, mode, key_prefix,
311310 use_signer=False, permanent=True):
312 from werkzeug.contrib.cache import FileSystemCache
311 from cachelib.file import FileSystemCache
313312 self.cache = FileSystemCache(cache_dir, threshold=threshold, mode=mode)
314313 self.key_prefix = key_prefix
315314 self.use_signer = use_signer
11 Flask-Session
22 -------------
33
4 Flask-Session is an extension for Flask that adds support for
4 Flask-Session is an extension for Flask that adds support for
55 Server-side Session to your application.
66
77 Links
1616
1717 setup(
1818 name='Flask-Session',
19 version='0.3.1',
19 version='0.3.2',
2020 url='https://github.com/fengsp/flask-session',
2121 license='BSD',
2222 author='Shipeng Feng',
2828 include_package_data=True,
2929 platforms='any',
3030 install_requires=[
31 'Flask>=0.8'
31 'Flask>=0.8',
32 'cachelib'
3233 ],
3334 test_suite='test_session',
3435 classifiers=[