BSRD-286: MIG V13 session_redis

This commit is contained in:
Tonow-c2c
2019-10-08 17:19:13 +02:00
parent 529ae1052f
commit e9add2fa96
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
# Copyright 2016-2018 Camptocamp SA
# Copyright 2016-2019 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{'name': 'Sessions in Redis',
'summary': 'Store web sessions in Redis',
'version': '12.0.1.0.0',
'version': '13.0.1.0.0',
'author': 'Camptocamp,Odoo Community Association (OCA)',
'license': 'AGPL-3',
'category': 'Extra Tools',
@@ -14,5 +14,5 @@
},
'website': 'http://www.camptocamp.com',
'data': [],
'installable': False,
'installable': True,
}
+1 -1
View File
@@ -1,4 +1,4 @@
# Copyright 2016-2018 Camptocamp SA
# Copyright 2016-2019 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
import logging
+2 -2
View File
@@ -1,4 +1,4 @@
# Copyright 2016-2018 Camptocamp SA
# Copyright 2016-2019 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
import json
@@ -18,7 +18,7 @@ class RedisSessionStore(SessionStore):
def __init__(self, redis, session_class=None,
prefix='', expiration=None):
super(RedisSessionStore, self).__init__(session_class=session_class)
super().__init__(session_class=session_class)
self.redis = redis
if expiration is None:
self.expiration = DEFAULT_SESSION_TIMEOUT