Browse Source

Refactoring on dict reference type

Roland Haroutiounian 8 years ago
parent
commit
7b7430ab90
1 changed files with 0 additions and 14 deletions
  1. 0
    14
      lodel/leapi/datahandlers/references/dict.py

+ 0
- 14
lodel/leapi/datahandlers/references/dict.py View File

@@ -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…
Cancel
Save