Browse Source

Bug Fix on the configuration parameters in the filesystem session plugin

Roland Haroutiounian 8 years ago
parent
commit
fda4259f21
2 changed files with 3 additions and 2 deletions
  1. 1
    1
      plugins/filesystem_session/__init__.py
  2. 2
    1
      plugins/filesystem_session/confspec.py

+ 1
- 1
plugins/filesystem_session/__init__.py View File

@@ -2,7 +2,7 @@ from lodel.settings.validator import SettingValidator
2 2
 
3 3
 __plugin_name__ = 'filesystem_session'
4 4
 __version__ = [0,0,1]
5
-__type__ = 'session_handler'
5
+__plugin_type__ = 'session_handler'
6 6
 __loader__ = 'main.py'
7 7
 __confspec__ = "confspec.py"
8 8
 __author__ = "Lodel2 dev team"

+ 2
- 1
plugins/filesystem_session/confspec.py View File

@@ -6,6 +6,7 @@ CONFSPEC = {
6 6
     'lodel2.sessions':{
7 7
         'directory': ('/tmp/', SettingValidator('path')),
8 8
         'expiration': (900, SettingValidator('int')),
9
-        'file_template': ('lodel2_%s.sess', SettingValidator('dummy'))
9
+        'file_template': ('lodel2_%s.sess', SettingValidator('dummy')),
10
+        'tokensize': (512, SettingValidator('int'))
10 11
     }
11 12
 }

Loading…
Cancel
Save