[wf] uicfg tweaks 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 18 Sep 2009 09:16:01 +0200
branch3.5
changeset 3306 bf50dc056edd
parent 3305 abae9045d2e4
child 3307 d1230b89d887
[wf] uicfg tweaks
web/views/workflow.py
--- a/web/views/workflow.py	Fri Sep 18 08:33:18 2009 +0200
+++ b/web/views/workflow.py	Fri Sep 18 09:16:01 2009 +0200
@@ -29,6 +29,15 @@
 _abaa.tag_subject_of(('State', 'allowed_transition', 'BaseTransition'), False)
 _abaa.tag_object_of(('SubWorkflowExitPoint', 'destination_state', 'State'),
                     False)
+_abaa.tag_object_of(('State', 'state_of', 'Workflow'), True)
+_abaa.tag_object_of(('Transition', 'transition_of', 'Workflow'), True)
+_abaa.tag_object_of(('WorkflowTransition', 'transition_of', 'Workflow'), True)
+
+_afs = uicfg.autoform_section
+_afs.tag_subject_of(('TrInfo', 'to_state', '*'), 'generated')
+_afs.tag_subject_of(('TrInfo', 'from_state', '*'), 'generated')
+_afs.tag_object_of(('State', 'allowed_transition', '*'), 'primary')
+
 
 # IWorkflowable views #########################################################