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.

fieldgroups.py 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #-*- coding: utf-8 -*-
  2. from EditorialModel.components import EmComponent
  3. class EmFieldGroup(EmComponent):
  4. """ Represents groups of EmField
  5. EmClass fields representation is organised with EmFieldGroup
  6. @see EmField
  7. """
  8. def __init__(id_or_name):
  9. """ Instanciate an EmFieldGroupe with data fetched from db
  10. @param id_or_name str|int: Identify the EmFieldGroup by name or by global_id
  11. @throw TypeError
  12. @see component::EmComponent::__init__()
  13. """
  14. super(EmFieldGroup, self).__init__()
  15. pass
  16. @staticmethod
  17. def create(name, em_class, ml_repr = None, ml_help = None, icon = None):
  18. """ Create a new EmType and instanciate it
  19. @todo Change the icon param type
  20. @todo em_class == None => Error ?
  21. @todo change staticmethod to classmethod ?
  22. @param name str: The name of the new Type
  23. @param em_class EmClass: The new EmFieldGroup will belong to this class
  24. @param ml_repr MlString|None: Multilingual representation of the type
  25. @param ml_help MlString|None: Multilingual help for the type
  26. @param The string|None: filename of the icon
  27. @return An EmFieldGroup instance
  28. @see EmComponent::__init__()
  29. """
  30. pass
  31. def fields():
  32. """ Get the list of associated fields
  33. @return A list of EmField
  34. """
  35. pass
  36. def field():
  37. """ ???
  38. @todo : find what this function is for
  39. """
  40. pass