|
@@ -15,13 +15,14 @@ from .exceptions import LodelDataHandlerNotAllowedOptionException
|
15
|
15
|
LodelContext.expose_modules(globals(), {
|
16
|
16
|
'lodel.exceptions': ['LodelException', 'LodelExceptions',
|
17
|
17
|
'LodelFatalError', 'DataNoneValid', 'FieldValidationError'],
|
|
18
|
+ 'lodel.mlnamedobject':['MlNamedObject'],
|
18
|
19
|
'lodel.leapi.datahandlers.exceptions': ['LodelDataHandlerConsistencyException', 'LodelDataHandlerException'],
|
19
|
20
|
'lodel.logger': 'logger'})
|
20
|
21
|
|
21
|
22
|
|
22
|
23
|
##@brief Base class for all data handlers
|
23
|
24
|
#@ingroup lodel2_datahandlers
|
24
|
|
-class DataHandler(object):
|
|
25
|
+class DataHandler(MlNamedObject):
|
25
|
26
|
base_type = "type"
|
26
|
27
|
_HANDLERS_MODULES = ('datas_base', 'datas', 'references')
|
27
|
28
|
##@brief Stores the DataHandler childs classes indexed by name
|
|
@@ -30,8 +31,8 @@ class DataHandler(object):
|
30
|
31
|
# @todo do it ! (like plugins, register handlers... blablabla)
|
31
|
32
|
__custom_handlers = dict()
|
32
|
33
|
|
33
|
|
- help_text = 'Generic Field Data Handler'
|
34
|
|
- display_name = "Generic Field"
|
|
34
|
+ #help_text = 'Generic Field Data Handler'
|
|
35
|
+ #display_name = "Generic Field"
|
35
|
36
|
options_spec = dict()
|
36
|
37
|
options_values = dict()
|
37
|
38
|
|
|
@@ -509,7 +510,7 @@ class DatasConstructor(object):
|
509
|
510
|
|
510
|
511
|
|
511
|
512
|
## @brief Class designed to handle an option of a DataHandler
|
512
|
|
-class DatahandlerOption(object):
|
|
513
|
+class DatahandlerOption(MlNamedObject):
|
513
|
514
|
|
514
|
515
|
## @brief instanciates a new Datahandler option object
|
515
|
516
|
#
|