schemas/workflow.py
changeset 3023 7864fee8b4ec
parent 2977 6dd4f4a3ff2a
child 3263 5129918c671b
--- a/schemas/workflow.py	Fri Aug 21 16:26:20 2009 +0200
+++ b/schemas/workflow.py	Wed Aug 26 14:45:56 2009 +0200
@@ -58,7 +58,7 @@
     allowed_transition = SubjectRelation('BaseTransition', cardinality='**',
                                          constraints=[RQLConstraint('S state_of WF, O transition_of WF')],
                                          description=_('allowed transitions from this state'))
-    state_of = SubjectRelation('Workflow', cardinality='+*',
+    state_of = SubjectRelation('Workflow', cardinality='1*',
                                description=_('workflow to which this state belongs'),
                                constraints=[RQLUniqueConstraint('S name N, Y state_of O, Y name N')])
 
@@ -81,7 +81,7 @@
     require_group = SubjectRelation('CWGroup', cardinality='**',
                                     description=_('group in which a user should be to be '
                                                   'allowed to pass this transition'))
-    transition_of = SubjectRelation('Workflow', cardinality='+*',
+    transition_of = SubjectRelation('Workflow', cardinality='1*',
                                     description=_('workflow to which this transition belongs'),
                                     constraints=[RQLUniqueConstraint('S name N, Y transition_of O, Y name N')])