[PATCH 1 of 5 sherpa] Unregister more actions

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


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1487927224 -3600
#      Fri Feb 24 10:07:04 2017 +0100
# Node ID 5e59431dc45d5d433d5e5ce0b18963a50f5598dc
# Parent  efcc1ab697227a83049628b2c62a8917ed20901b
Unregister more actions

all actions in cw.web.views.actions being now considered for registration or not.

diff --git a/cubicweb_sherpa/views/__init__.py b/cubicweb_sherpa/views/__init__.py
--- a/cubicweb_sherpa/views/__init__.py
+++ b/cubicweb_sherpa/views/__init__.py
@@ -75,12 +75,19 @@ class SherpaReqRewriter(urlrewrite.Simpl
 
 def registration_callback(vreg):
     vreg.register_all(globals().values(), __name__, (IndexView,))
     vreg.register_and_replace(IndexView, startup.IndexView)
 
-    from cubicweb.web.views import actions, bookmark
+    from cubicweb.web.views import actions, bookmark, cwuser
+    vreg.unregister(actions.SelectAction)
+    vreg.unregister(actions.CancelSelectAction)
     vreg.unregister(actions.ViewAction)
     vreg.unregister(actions.MultipleEditAction)
+    vreg.unregister(actions.CopyAction)
+    vreg.unregister(actions.AddNewAction)
     vreg.unregister(actions.AddRelatedActions)
+    vreg.unregister(actions.ViewSameCWEType)
     vreg.unregister(actions.UserPreferencesAction)
     vreg.unregister(actions.ManageAction)
+    vreg.unregister(actions.PoweredByAction)
     vreg.unregister(bookmark.BookmarksBox)
+    vreg.unregister(cwuser.UserPreferencesEntityAction)


More information about the saem-devel mailing list