web/views/workflow.py
changeset 3503 06bced8edddf
parent 3460 e4843535db25
parent 3487 2e705d9fdaf1
child 3524 a3431f4e2f40
--- a/web/views/workflow.py	Sat Sep 26 11:44:35 2009 +0200
+++ b/web/views/workflow.py	Mon Sep 28 12:37:01 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)