schemas/workflow.py
branchtls-sprint
changeset 798 0015b33a7336
parent 628 3a6f28a1ea21
child 1398 5fe84a5f7035
equal deleted inserted replaced
797:9a39da0df3a2 798:0015b33a7336
     9     """used to associate simple states to an entity type and/or to define
     9     """used to associate simple states to an entity type and/or to define
    10     workflows
    10     workflows
    11     """
    11     """
    12     name = String(required=True, indexed=True, internationalizable=True,
    12     name = String(required=True, indexed=True, internationalizable=True,
    13                   maxsize=256)
    13                   maxsize=256)
    14     description = RichString(fulltextindexed=True, default='text/rest',
    14     description = RichString(fulltextindexed=True, default_format='text/rest',
    15                              description=_('semantic description of this state'))
    15                              description=_('semantic description of this state'))
    16     
    16     
    17     state_of = SubjectRelation('EEType', cardinality='+*',
    17     state_of = SubjectRelation('EEType', cardinality='+*',
    18                     description=_('entity types which may use this state'),
    18                     description=_('entity types which may use this state'),
    19                     constraints=[RQLConstraint('O final FALSE')])
    19                     constraints=[RQLConstraint('O final FALSE')])