瀏覽代碼

Activated the filesystemsession

Roland Haroutiounian 7 年之前
父節點
當前提交
1411fb2b47
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. 1
    2
      lodel_app/__init__.py

+ 1
- 2
lodel_app/__init__.py 查看文件

@@ -4,7 +4,6 @@ import os
4 4
 from lodel.lodelsites.utils import register_lodelsites
5 5
 from lodel.utils.ini_files import ini_to_dict
6 6
 from lodel.session.lodel_filesystem_session.lodel_filesystem_session_interface import LodelFileSystemSessionInterface
7
-from lodel.session.lodel_ram_session.lodel_ram_session_interface import LodelRamSessionInterface
8 7
 
9 8
 
10 9
 lodel_app = Flask(__name__)
@@ -14,7 +13,7 @@ lodel_app.config.update(ini_to_dict(os.path.join(os.path.dirname(os.path.abspath
14 13
 
15 14
 lodel_app.session_cookie_name = lodel_app.config['lodel.sessions']['session_cookie_name']
16 15
 lodel_app.permanent_session_lifetime = int(lodel_app.config['lodel.sessions']['session_lifetime'])
17
-lodel_app.session_interface = LodelRamSessionInterface()  # LodelFileSystemSessionInterface(lodel_app.config['lodel.filesystem_sessions']['path'])
16
+lodel_app.session_interface = LodelFileSystemSessionInterface(lodel_app.config['lodel.filesystem_sessions']['path'])
18 17
 
19 18
 # Main Hooks
20 19
 from .hooks import *

Loading…
取消
儲存