equal
deleted
inserted
replaced
77 msg=_('state and transition don\'t belong the the same workflow'))], |
77 msg=_('state and transition don\'t belong the the same workflow'))], |
78 description=_('allowed transitions from this state')) |
78 description=_('allowed transitions from this state')) |
79 state_of = SubjectRelation('Workflow', cardinality='1*', composite='object', |
79 state_of = SubjectRelation('Workflow', cardinality='1*', composite='object', |
80 description=_('workflow to which this state belongs'), |
80 description=_('workflow to which this state belongs'), |
81 constraints=[RQLUniqueConstraint('S name N, Y state_of O, Y name N', 'Y', |
81 constraints=[RQLUniqueConstraint('S name N, Y state_of O, Y name N', 'Y', |
82 _('workflow already have a state of that name'))]) |
82 _('workflow already has a state of that name'))]) |
83 |
83 |
84 |
84 |
85 class BaseTransition(EntityType): |
85 class BaseTransition(EntityType): |
86 """abstract base class for transitions""" |
86 """abstract base class for transitions""" |
87 __permissions__ = PUB_SYSTEM_ENTITY_PERMS |
87 __permissions__ = PUB_SYSTEM_ENTITY_PERMS |