Import upstream version 0.3.2
Kali Janitor
3 years ago
0 | |
[submodule "docs/_themes"]
|
1 | |
path = docs/_themes
|
2 | |
url = [email protected]:mitsuhiko/flask-sphinx-themes.git
|
47 | 47 |
|
48 | 48 |
- SqlAlchemySessionInterface is using VARCHAR(255) to store session id now
|
49 | 49 |
- SqlAlchemySessionInterface won't run `db.create_all` anymore
|
|
50 |
|
|
51 |
Version 0.3.2
|
|
52 |
`````````````
|
|
53 |
|
|
54 |
- Changed `werkzeug.contrib.cache` to `cachelib`
|
18 | 18 |
# add these directories to sys.path here. If the directory is relative to the
|
19 | 19 |
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
20 | 20 |
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
21 | |
sys.path.append(os.path.abspath('_themes'))
|
22 | 21 |
|
23 | 22 |
# -- General configuration ------------------------------------------------
|
24 | 23 |
|
|
105 | 104 |
|
106 | 105 |
# The theme to use for HTML and HTML Help pages. See the documentation for
|
107 | 106 |
# a list of builtin themes.
|
108 | |
html_theme = 'flask_small'
|
|
107 |
html_theme = 'alabaster'
|
109 | 108 |
|
110 | 109 |
# Theme options are theme-specific and customize the look and feel of a theme
|
111 | 110 |
# further. For a list of options available for each theme, see the
|
112 | 111 |
# documentation.
|
113 | 112 |
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',
|
116 | 117 |
}
|
117 | 118 |
|
118 | 119 |
# Add any paths that contain custom themes here, relative to this directory.
|
119 | |
html_theme_path = ['_themes']
|
|
120 |
#html_theme_path = ['_themes']
|
120 | 121 |
|
121 | 122 |
# The name for this set of Sphinx documents. If None, it defaults to
|
122 | 123 |
# "<project> v<release> documentation".
|
8 | 8 |
:license: BSD, see LICENSE for more details.
|
9 | 9 |
"""
|
10 | 10 |
|
11 | |
__version__ = '0.3.1'
|
|
11 |
__version__ = '0.3.2'
|
12 | 12 |
|
13 | 13 |
import os
|
14 | 14 |
|
290 | 290 |
|
291 | 291 |
|
292 | 292 |
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.
|
295 | 294 |
|
296 | 295 |
.. versionadded:: 0.2
|
297 | 296 |
The `use_signer` parameter was added.
|
|
309 | 308 |
|
310 | 309 |
def __init__(self, cache_dir, threshold, mode, key_prefix,
|
311 | 310 |
use_signer=False, permanent=True):
|
312 | |
from werkzeug.contrib.cache import FileSystemCache
|
|
311 |
from cachelib.file import FileSystemCache
|
313 | 312 |
self.cache = FileSystemCache(cache_dir, threshold=threshold, mode=mode)
|
314 | 313 |
self.key_prefix = key_prefix
|
315 | 314 |
self.use_signer = use_signer
|
1 | 1 |
Flask-Session
|
2 | 2 |
-------------
|
3 | 3 |
|
4 | |
Flask-Session is an extension for Flask that adds support for
|
|
4 |
Flask-Session is an extension for Flask that adds support for
|
5 | 5 |
Server-side Session to your application.
|
6 | 6 |
|
7 | 7 |
Links
|
|
16 | 16 |
|
17 | 17 |
setup(
|
18 | 18 |
name='Flask-Session',
|
19 | |
version='0.3.1',
|
|
19 |
version='0.3.2',
|
20 | 20 |
url='https://github.com/fengsp/flask-session',
|
21 | 21 |
license='BSD',
|
22 | 22 |
author='Shipeng Feng',
|
|
28 | 28 |
include_package_data=True,
|
29 | 29 |
platforms='any',
|
30 | 30 |
install_requires=[
|
31 | |
'Flask>=0.8'
|
|
31 |
'Flask>=0.8',
|
|
32 |
'cachelib'
|
32 | 33 |
],
|
33 | 34 |
test_suite='test_session',
|
34 | 35 |
classifiers=[
|