No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

relation.py 763B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. from lodel.leapi.datahandlers.field_data_handler import FieldDataHandler
  3. class DataHandler(FieldDataHandler):
  4. ## @brief Instanciates a Relation object
  5. # @param datahandler FieldDataHandler
  6. # @param datahandler_args dict
  7. # @param reference EmField
  8. # @param kwargs
  9. def __init__(self, **kwargs):
  10. # Data Handler
  11. data_handler = kwargs['data_handler_kwargs']['data_handler']
  12. data_handler_args = kwargs['data_handler_kwargs']
  13. data_handler_class = FieldDataHandler.from_name(data_handler)
  14. self.data_handler = data_handler_class(**data_handler_args)
  15. # Reference
  16. self.backref_ref = kwargs['data_handler_kwargs']['backreference']
  17. super().__init__(**kwargs)