Bläddra i källkod

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

prieto 7 år sedan
förälder
incheckning
0763ce22ae

+ 2
- 0
lodel/context.py Visa fil

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

+ 0
- 1
lodel/editorial_model/translator/picklefile.py Visa fil

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

+ 1
- 1
lodel/leapi/datahandlers/__init__.py Visa fil

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

lodel/plugins/ram_sessions/__init__.py → lodel/plugins/ram_session/__init__.py Visa fil

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

lodel/plugins/ram_sessions/main.py → lodel/plugins/ram_session/main.py Visa fil


+ 1
- 1
tests/plugin/test_plugin.py Visa fil

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

+ 1
- 1
tests/tests_conf.d/lodel2.ini Visa fil

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

Loading…
Avbryt
Spara