Browse Source

Fix on the call to the parent's init in DataHandler and DataHandlerOption classes

Roland Haroutiounian 8 years ago
parent
commit
dd1b1d0b13
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      lodel/leapi/datahandlers/base_classes.py

+ 4
- 3
lodel/leapi/datahandlers/base_classes.py View File

@@ -31,8 +31,8 @@ class DataHandler(MlNamedObject):
31 31
     # @todo do it ! (like plugins, register handlers... blablabla)
32 32
     __custom_handlers = dict()
33 33
 
34
-    #help_text = 'Generic Field Data Handler'
35
-    #display_name = "Generic Field"
34
+    help_text = 'Generic Field Data Handler'
35
+    display_name = "Generic Field"
36 36
     options_spec = dict()
37 37
     options_values = dict()
38 38
 
@@ -63,6 +63,7 @@ class DataHandler(MlNamedObject):
63 63
         for argname, argval in kwargs.items():
64 64
             setattr(self, argname, argval)
65 65
         self.check_options()
66
+        super().__init__(self.display_name, self.help_text)
66 67
 
67 68
     ## @brief Sets properly casted and checked options for the datahandler
68 69
     # @raises LodelDataHandlerNotAllowedOptionException when a passed option is not in the option specifications of the datahandler
@@ -523,7 +524,7 @@ class DatahandlerOption(MlNamedObject):
523 524
         self.__display_name = display_name
524 525
         self.__help_text = help_text
525 526
         self.__validator = validator
526
-
527
+        super().__init__(self.__display_name, self.__help_text)
527 528
     @property
528 529
     def id(self):
529 530
         return self.__id

Loading…
Cancel
Save