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.

Link.py 592B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. from lodel.leapi.datahandlers.reference import Reference
  3. from lodel.editorial_model.components import EmClass
  4. class Link(Reference):
  5. ## @brief instanciates a link reference
  6. # @param emclass EmClass : linked object
  7. # @param allowed bool
  8. # @param internal bool : if False, the field is not internal
  9. # @param kwargs : Other named arguments
  10. def __init__(self, emclass, allowed=True, internal=False, **kwargs):
  11. self._refs = emclass
  12. self._refs_class = EmClass
  13. super().__init__(allowed=allowed, internal=internal, **kwargs)