Explorar el Código

Refactoring on dict reference type

Roland Haroutiounian hace 8 años
padre
commit
7b7430ab90
Se han modificado 1 ficheros con 0 adiciones y 14 borrados
  1. 0
    14
      lodel/leapi/datahandlers/references/dict.py

+ 0
- 14
lodel/leapi/datahandlers/references/dict.py Ver fichero

@@ -12,20 +12,6 @@ class DataHandler(Reference):
12 12
     def __init__(self, allowed_classes=None, internal=False, **kwargs):
13 13
         super().__init__(allowed_classes=allowed_classes, internal=internal, **kwargs)
14 14
 
15
-    ## @brief checks if the given target is valid
16
-    # @return bool
17
-    def _check_data_value(self, value):
18
-        relateds = self.get_relateds()
19
-
20
-        if not isinstance(relateds, self._refs_class):
21
-            return
22
-
23
-        for related in relateds.values():
24
-            if not isinstance(related, EmClass):
25
-                return False
26
-
27
-        return True
28
-
29 15
     ## @brief adds a referenced element
30 16
     # @param ref_name str : key of the item in the reference dict
31 17
     # @param emclass EmClass

Loading…
Cancelar
Guardar