Browse Source

without expose_module, rename ram_session, comment load_datahandlers in __init__.py

prieto 7 years ago
parent
commit
0763ce22ae

+ 2
- 0
lodel/context.py View File

8
 import re
8
 import re
9
 import copy
9
 import copy
10
 
10
 
11
+import lodel.logger as logger
12
+
11
 import warnings #For the moment no way to use the logger in this file (I guess)
13
 import warnings #For the moment no way to use the logger in this file (I guess)
12
 
14
 
13
 #A try to avoid circular dependencies problems
15
 #A try to avoid circular dependencies problems

+ 0
- 1
lodel/editorial_model/translator/picklefile.py View File

3
 # This module handles the file storage of an editorial model
3
 # This module handles the file storage of an editorial model
4
 
4
 
5
 import pickle
5
 import pickle
6
-from pickle import Pickler
7
 
6
 
8
 ##@brief Saves a model in a file
7
 ##@brief Saves a model in a file
9
 # @param model EditorialModel : the model to save
8
 # @param model EditorialModel : the model to save

+ 1
- 1
lodel/leapi/datahandlers/__init__.py View File

1
 from lodel.leapi.datahandlers.base_classes import DataHandler
1
 from lodel.leapi.datahandlers.base_classes import DataHandler
2
-DataHandler.load_base_handlers()
2
+# DataHandler.load_base_handlers()
3
 
3
 
4
 ## @defgroup lodel2_datahandlers Datahandlers
4
 ## @defgroup lodel2_datahandlers Datahandlers
5
 # @ingroup lodel2_leapi
5
 # @ingroup lodel2_leapi

lodel/plugins/ram_sessions/__init__.py → lodel/plugins/ram_session/__init__.py View File

1
 from lodel.validator.validator Validator
1
 from lodel.validator.validator Validator
2
 
2
 
3
-__plugin_name__ = 'ram_sessions'
3
+__plugin_name__ = 'ram_session'
4
 __version__ = [0,0,1]
4
 __version__ = [0,0,1]
5
 __plugin_type__ = 'session_handler'
5
 __plugin_type__ = 'session_handler'
6
 __loader__ = 'main.py'
6
 __loader__ = 'main.py'

lodel/plugins/ram_sessions/main.py → lodel/plugins/ram_session/main.py View File


+ 1
- 1
tests/plugin/test_plugin.py View File

89
     @classmethod
89
     @classmethod
90
     def setUpClass(cls):
90
     def setUpClass(cls):
91
         Plugin.clear()
91
         Plugin.clear()
92
-        Plugin.start(['dummy', 'dummy_datasource', 'webui', 'ram_sessions'])
92
+        Plugin.start(['dummy', 'dummy_datasource', 'webui', 'ram_session'])
93
 
93
 
94
     @classmethod
94
     @classmethod
95
     def tearDownClass(cls):
95
     def tearDownClass(cls):

+ 1
- 1
tests/tests_conf.d/lodel2.ini View File

4
 runtest=True
4
 runtest=True
5
 extensions = dummy
5
 extensions = dummy
6
 datasource_connectors = dummy_datasource
6
 datasource_connectors = dummy_datasource
7
-session_handler = ram_sessions
7
+session_handler = ram_session
8
 
8
 
9
 [lodel2.logging.stderr]
9
 [lodel2.logging.stderr]
10
 level = Error
10
 level = Error

Loading…
Cancel
Save