87 __permissions__ = PUB_SYSTEM_ENTITY_PERMS |
87 __permissions__ = PUB_SYSTEM_ENTITY_PERMS |
88 |
88 |
89 name = String(required=True, indexed=True, internationalizable=True, |
89 name = String(required=True, indexed=True, internationalizable=True, |
90 maxsize=256, |
90 maxsize=256, |
91 constraints=[RQLUniqueConstraint('S name N, S transition_of WF, Y transition_of WF, Y name N', 'Y', |
91 constraints=[RQLUniqueConstraint('S name N, S transition_of WF, Y transition_of WF, Y name N', 'Y', |
92 _('workflow already have a transition of that name'))]) |
92 _('workflow already has a transition of that name'))]) |
93 type = String(vocabulary=(_('normal'), _('auto')), default='normal') |
93 type = String(vocabulary=(_('normal'), _('auto')), default='normal') |
94 description = RichString(description=_('semantic description of this transition')) |
94 description = RichString(description=_('semantic description of this transition')) |
95 |
95 |
96 transition_of = SubjectRelation('Workflow', cardinality='1*', composite='object', |
96 transition_of = SubjectRelation('Workflow', cardinality='1*', composite='object', |
97 description=_('workflow to which this transition belongs'), |
97 description=_('workflow to which this transition belongs'), |
98 constraints=[RQLUniqueConstraint('S name N, Y transition_of O, Y name N', 'Y', |
98 constraints=[RQLUniqueConstraint('S name N, Y transition_of O, Y name N', 'Y', |
99 _('workflow already have a transition of that name'))]) |
99 _('workflow already has a transition of that name'))]) |
100 |
100 |
101 |
101 |
102 class require_group(RelationDefinition): |
102 class require_group(RelationDefinition): |
103 """group in which a user should be to be allowed to pass this transition""" |
103 """group in which a user should be to be allowed to pass this transition""" |
104 __permissions__ = PUB_SYSTEM_REL_PERMS |
104 __permissions__ = PUB_SYSTEM_REL_PERMS |