[views] workflow primary view: do not show states and transitions in side boxes stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 25 Sep 2009 21:58:55 +0200
branchstable
changeset 3487 2e705d9fdaf1
parent 3486 ea6bf6f9ba0c
child 3488 ab9e7bcfc764
[views] workflow primary view: do not show states and transitions in side boxes
web/views/workflow.py
--- a/web/views/workflow.py	Fri Sep 25 20:49:41 2009 +0200
+++ b/web/views/workflow.py	Fri Sep 25 21:58:55 2009 +0200
@@ -24,6 +24,11 @@
 from cubicweb.web import formfields as ff, formwidgets as fwdgs
 from cubicweb.web.views import TmpFileViewMixin, forms, primary
 
+_pvs = uicfg.primaryview_section
+_pvs.tag_subject_of(('Workflow', 'initial_state', '*'), 'hidden')
+_pvs.tag_object_of(('*', 'state_of', 'Workflow'), 'hidden')
+_pvs.tag_object_of(('*', 'transition_of', 'Workflow'), 'hidden')
+
 _abaa = uicfg.actionbox_appearsin_addmenu
 _abaa.tag_subject_of(('BaseTransition', 'condition', 'RQLExpression'), False)
 _abaa.tag_subject_of(('State', 'allowed_transition', 'BaseTransition'), False)