|
@@ -9,13 +9,14 @@ class DataHandler(FieldDataHandler):
|
9
|
9
|
# @param datahandler_args dict
|
10
|
10
|
# @param reference EmField
|
11
|
11
|
# @param kwargs
|
12
|
|
- def __init__(self, datahandler, datahandler_args, reference, **kwargs):
|
13
|
|
-
|
|
12
|
+ def __init__(self, **kwargs):
|
14
|
13
|
# Data Handler
|
15
|
|
- data_handler_class = FieldDataHandler.from_name(datahandler)
|
16
|
|
- self.data_handler = data_handler_class(**datahandler_args)
|
|
14
|
+ data_handler = kwargs['data_handler_kwargs']['data_handler']
|
|
15
|
+ data_handler_args = kwargs['data_handler_kwargs']
|
|
16
|
+ data_handler_class = FieldDataHandler.from_name(data_handler)
|
|
17
|
+ self.data_handler = data_handler_class(**data_handler_args)
|
17
|
18
|
|
18
|
19
|
# Reference
|
19
|
|
- self.backref_ref = reference
|
|
20
|
+ self.backref_ref = kwargs['data_handler_kwargs']['backreference']
|
20
|
21
|
|
21
|
22
|
super().__init__(**kwargs)
|