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.

class.py 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # -*- coding: utf-8 -*-
  2. """ Manipulate Classes of the Editorial Model
  3. Create classes of object
  4. @see EmClass, EmType, EmFieldGroup, EmField
  5. """
  6. from component import EmComponent
  7. class EmClass(EmComponent)
  8. def __init(id_or_name):
  9. self.table = 'em_class'
  10. pass
  11. """ create a new class
  12. @param name str: name of the new class
  13. @param class_type EmClasstype: type of the class
  14. """
  15. @staticmethod
  16. def create(self, name, class_type):
  17. pass
  18. """ retrieve list of the field_groups of this class
  19. @return field_groups [EmFieldGroup]:
  20. """
  21. def field_groups():
  22. pass
  23. """ retrieve list of fields
  24. @return fields [EmField]:
  25. """
  26. def fields():
  27. pass
  28. """ retrieve list of type of this class
  29. @return types [EmType]:
  30. """
  31. def types():
  32. pass
  33. """ add a new EmType that can ben linked to this class
  34. @param t EmType: type to link
  35. @return success bool: done or not
  36. """
  37. def link_type(t <EmType>):
  38. pass
  39. """ retrieve list of EmType that are linked to this class
  40. @return types [EmType]:
  41. """
  42. def linked_types():
  43. pass