Unregister more actions
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 24 Feb 2017 10:07:04 +0100
changeset 177 3efd0259a9ac
parent 176 e1f4c31c2414
child 178 6390ca1b51cc
Unregister more actions all actions in cw.web.views.actions being now considered for registration or not.
cubicweb_sherpa/views/__init__.py
--- a/cubicweb_sherpa/views/__init__.py	Fri Feb 24 16:26:00 2017 +0100
+++ b/cubicweb_sherpa/views/__init__.py	Fri Feb 24 10:07:04 2017 +0100
@@ -77,10 +77,17 @@
     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)