Migrate addons to 10.0

This commit is contained in:
Guewen Baconnier
2016-12-21 21:29:09 +01:00
parent 022f9003e8
commit 8e4b461c75
17 changed files with 35 additions and 37 deletions
+1 -1
View File
@@ -32,6 +32,6 @@ Limitations
Redis.
* All the users will have to login again as their previous session will be
dropped.
* The addon monkey-patch ``openerp.http.Root.session_store`` with a custom
* The addon monkey-patch ``odoo.http.Root.session_store`` with a custom
method when the Redis mode is active, so incompatibilities with other addons
is possible if they do the same.
@@ -5,7 +5,7 @@
{'name': 'Sessions in Redis',
'summary': 'Store web sessions in Redis',
'version': '9.0.1.0.0',
'version': '10.0.1.0.0',
'author': 'Camptocamp,Odoo Community Association (OCA)',
'license': 'AGPL-3',
'category': 'Extra Tools',
+4 -4
View File
@@ -7,9 +7,9 @@ import os
from distutils.util import strtobool
import openerp
from openerp import http
from openerp.tools.func import lazy_property
import odoo
from odoo import http
from odoo.tools.func import lazy_property
from .session import RedisSessionStore
@@ -65,4 +65,4 @@ if is_true(os.environ.get('ODOO_SESSION_REDIS')):
http.Root.session_store = session_store
http.session_gc = session_gc
# clean the existing sessions on the file system
purge_fs_sessions(openerp.tools.config.session_dir)
purge_fs_sessions(odoo.tools.config.session_dir)
+1 -1
View File
@@ -8,7 +8,7 @@ import logging
from werkzeug.contrib.sessions import SessionStore
# this is equal to the duration of the session garbage collector in
# openerp.http.session_gc()
# odoo.http.session_gc()
DEFAULT_SESSION_TIMEOUT = 60 * 60 * 24 * 7 # 7 days in seconds
_logger = logging.getLogger(__name__)