schemas/workflow.py
branchstable
changeset 3528 77a69de16709
parent 3499 9161c215b954
child 3529 87b5086fd6a7
equal deleted inserted replaced
3527:efeb16ff93f3 3528:77a69de16709
    66     """abstract base class for transitions"""
    66     """abstract base class for transitions"""
    67     permissions = META_ETYPE_PERMS
    67     permissions = META_ETYPE_PERMS
    68 
    68 
    69     name = String(required=True, indexed=True, internationalizable=True,
    69     name = String(required=True, indexed=True, internationalizable=True,
    70                   maxsize=256)
    70                   maxsize=256)
       
    71     type = String(vocabulary=(_('normal'), _('auto')), default='normal')
    71     description = RichString(fulltextindexed=True,
    72     description = RichString(fulltextindexed=True,
    72                          description=_('semantic description of this transition'))
    73                          description=_('semantic description of this transition'))
    73     condition = SubjectRelation('RQLExpression', cardinality='*?', composite='subject',
    74     condition = SubjectRelation('RQLExpression', cardinality='*?', composite='subject',
    74                                 description=_('a RQL expression which should return some results, '
    75                                 description=_('a RQL expression which should return some results, '
    75                                               'else the transition won\'t be available. '
    76                                               'else the transition won\'t be available. '