Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

leclass.py 1002B

12345678910111213141516171819202122232425262728293031
  1. #-*- coding: utf-8 -*-
  2. import leobject
  3. ## @brief Represent an EmClass data instance
  4. # @note Is not a derivated class of LeObject because the concrete class will be a derivated class from LeObect
  5. class LeClass(object):
  6. ## @brief Stores fieldtypes by field name
  7. _fieldtypes = dict()
  8. ## @brief Stores fieldgroups and the fields they contains
  9. _fieldgroups = dict()
  10. ## @brief Instanciate a new LeClass
  11. # @param model Model : The editorial model
  12. # @param datasource ? : The datasource
  13. def __init__(self, **kwargs):
  14. raise NotImplementedError("Abstract class")
  15. ## @brief Get the linked objects
  16. # @return an array of LeType derivated class instance
  17. def linked(self):
  18. pass
  19. ## @brief Link this class with an LeObject
  20. # @param leo LeObject : The object to be linked with
  21. # @return True if success False allready done
  22. # @throw A Leo exception if the link is not allowed
  23. def link_to(self, leo):
  24. pass