[PATCH 2 of 5 sherpa] Deactivate workflow related actions

Sylvain Thenault sylvain.thenault at logilab.fr
Fri Feb 24 16:11:03 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1487927890 -3600
#      Fri Feb 24 10:18:10 2017 +0100
# Node ID 17d53257e1689e312577a5b2df823086eb135837
# Parent  5e59431dc45d5d433d5e5ce0b18963a50f5598dc
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.

diff --git a/cubicweb_sherpa/views/components.py b/cubicweb_sherpa/views/components.py
--- a/cubicweb_sherpa/views/components.py
+++ b/cubicweb_sherpa/views/components.py
@@ -95,7 +95,8 @@ class ActionsComponent(component.CtxComp
 
 
 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


More information about the saem-devel mailing list