schemas/bootstrap.py
branchtls-sprint
changeset 627 36ade1128af7
parent 0 b97547f5f1fa
child 628 3a6f28a1ea21
equal deleted inserted replaced
624:258e5692ae06 627:36ade1128af7
    12 # access to this
    12 # access to this
    13 class EEType(MetaEntityType):
    13 class EEType(MetaEntityType):
    14     """define an entity type, used to build the application schema"""
    14     """define an entity type, used to build the application schema"""
    15     name = String(required=True, indexed=True, internationalizable=True,
    15     name = String(required=True, indexed=True, internationalizable=True,
    16                   unique=True, maxsize=64)
    16                   unique=True, maxsize=64)
    17     description_format = String(meta=True, internationalizable=True, maxsize=50,
    17     description = RichString(internationalizable=True, 
    18                                 default='text/plain', constraints=[format_constraint])
    18                              description=_('semantic description of this entity type'))
    19     description = String(internationalizable=True,
       
    20                          description=_('semantic description of this entity type'))
       
    21     meta = Boolean(description=_('is it an application entity type or not ?'))
    19     meta = Boolean(description=_('is it an application entity type or not ?'))
    22     # necessary to filter using RQL
    20     # necessary to filter using RQL
    23     final = Boolean(description=_('automatic'))
    21     final = Boolean(description=_('automatic'))
    24 
    22 
    25 
    23