[views] Unregister the bookmark box
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 07 Feb 2017 14:08:45 +0100
changeset 80 212e112c7c82
parent 79 08fb3f03dd60
child 81 8146ec16004b
[views] Unregister the bookmark box Closes #16687294
views/__init__.py
--- a/views/__init__.py	Fri Feb 03 16:26:32 2017 +0100
+++ b/views/__init__.py	Tue Feb 07 14:08:45 2017 +0100
@@ -65,3 +65,10 @@
         (urlrewrite.rgx('/utilisation'), dict(vid='sherpa.utilisation')),
         (urlrewrite.rgx('/seda'), dict(vid='sherpa.seda'))
     ]
+
+
+def registration_callback(vreg):
+    from cubicweb.web.views import bookmark
+
+    vreg.register_all(globals().values(), __name__)
+    vreg.unregister(bookmark.BookmarksBox)