schemas/workflow.py
branchstable
changeset 3499 9161c215b954
parent 3444 0ad4ef5d3737
child 3503 06bced8edddf
child 3528 77a69de16709
--- a/schemas/workflow.py	Mon Sep 28 11:02:24 2009 +0200
+++ b/schemas/workflow.py	Mon Sep 28 11:06:18 2009 +0200
@@ -57,7 +57,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='1*',
+    state_of = SubjectRelation('Workflow', cardinality='1*', composite='object',
                                description=_('workflow to which this state belongs'),
                                constraints=[RQLUniqueConstraint('S name N, Y state_of O, Y name N')])
 
@@ -80,7 +80,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='1*',
+    transition_of = SubjectRelation('Workflow', cardinality='1*', composite='object',
                                     description=_('workflow to which this transition belongs'),
                                     constraints=[RQLUniqueConstraint('S name N, Y transition_of O, Y name N')])