uicfg tweaks for wf 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 16 Sep 2009 17:26:52 +0200
branch3.5
changeset 3262 12ffb1e95771
parent 3261 559387273d98
child 3263 5129918c671b
uicfg tweaks for wf
web/views/workflow.py
--- a/web/views/workflow.py	Wed Sep 16 17:26:24 2009 +0200
+++ b/web/views/workflow.py	Wed Sep 16 17:26:52 2009 +0200
@@ -20,10 +20,15 @@
 from cubicweb.interfaces import IWorkflowable
 from cubicweb.view import EntityView
 from cubicweb.schema import display_name
-from cubicweb.web import stdmsgs, action, component, form, action
+from cubicweb.web import uicfg, stdmsgs, action, component, form, action
 from cubicweb.web import formfields as ff, formwidgets as fwdgs
 from cubicweb.web.views import TmpFileViewMixin, forms, primary
 
+_abaa = uicfg.actionbox_appearsin_addmenu
+_abaa.tag_subject_of(('BaseTransition', 'condition', 'RQLExpression'), False)
+_abaa.tag_subject_of(('State', 'allowed_transition', 'BaseTransition'), False)
+_abaa.tag_object_of(('SubWorkflowExitPoint', 'destination_state', 'State'),
+                    False)
 
 # IWorkflowable views #########################################################