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 628B

1234567891011121314151617181920212223
  1. #-*- coding: utf-8 -*-
  2. from EditorialModel.components import EmComponent
  3. import EditorialModel.fieldtypes as ftypes
  4. ## Represents groups of EmField associated with an EmClass
  5. #
  6. # EmClass fields representation is organised with EmFieldGroup
  7. # @see EditorialModel::fields::EmField EditorialModel::classes::EmClass
  8. class EmFieldGroup(EmComponent):
  9. ## The database table name
  10. table = 'em_fieldgroup'
  11. ranked_in = 'class_id'
  12. ## List of fields
  13. _fields = [('class_id', ftypes.EmField_integer)]
  14. ## Get the list of associated fields
  15. # @return A list of EmField instance
  16. def fields(self):
  17. pass