|
@@ -74,4 +74,10 @@ class Hierarch(MultipleRef):
|
74
|
74
|
# @param max_depth int | None : limit of depth
|
75
|
75
|
# @param max_childs int | Nine : maximum number of childs by nodes
|
76
|
76
|
def __init__(self, back_reference, max_depth = None, max_childs = None, **kwargs):
|
77
|
|
- super().__init__(back_reference = back_reference)
|
|
77
|
+ super().__init__(back_reference = back_reference, max_depth = max_depth, )
|
|
78
|
+
|
|
79
|
+ def _check_data_value(self, value):
|
|
80
|
+ value, expt = super()._check_data_value(value)
|
|
81
|
+ if isinstance(expt, Exception):
|
|
82
|
+ return None, expt
|
|
83
|
+ # determine depth with datasource
|