Deactivate workflow related actions
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 24 Feb 2017 10:18:10 +0100
changeset 178 6390ca1b51cc
parent 177 3efd0259a9ac
child 179 35d98fb943a8
Deactivate workflow related actions which are not supported by our actions component since they are expected to be displayed in a submenu, but we don't want to reintroduce this. This should not be a problem since we don't use workflows in this application, beside the standard user workflow but we can get ride of this for now.
cubicweb_sherpa/views/components.py
--- a/cubicweb_sherpa/views/components.py	Fri Feb 24 10:07:04 2017 +0100
+++ b/cubicweb_sherpa/views/components.py	Fri Feb 24 10:18:10 2017 +0100
@@ -97,5 +97,6 @@
 def registration_callback(vreg):
     vreg.register_all(globals().values(), __name__)
 
-    from cubicweb.web.views import boxes
+    from cubicweb.web.views import boxes, workflow
     vreg.unregister(boxes.EditBox)
+    vreg.unregister(workflow.WorkflowActions)  # XXX unsupported for now