[components] Unregister unused components
authorVincent Michel <vincent.michel@logilab.fr>
Tue, 16 Jul 2013 15:17:15 +0200
changeset 298 5303de3db9e2
parent 297 d3ef87d7151b
child 299 3413ea19754f
[components] Unregister unused components
views/components.py
--- a/views/components.py	Mon Jul 08 16:34:35 2013 +0200
+++ b/views/components.py	Tue Jul 16 15:17:15 2013 +0200
@@ -226,7 +226,8 @@
 
 def registration_callback(vreg):
     vreg.register_all(globals().values(), __name__, (BrainomicsSearchBox,
-                                                     BrainomicsEditBox))
+                                                     BrainomicsEditBox,
+                                                     ))
     vreg.register_and_replace(BrainomicsSearchBox, SearchBox)
     vreg.register_and_replace(BrainomicsEditBox, EditBox)
     # Unregister breadcrumbs
@@ -238,3 +239,11 @@
     vreg.unregister(BreadCrumbAnyRSetVComponent)
     vreg.unregister(BreadCrumbETypeVComponent)
     vreg.unregister(BreadCrumbLinkToVComponent)
+    # Unregister logo for now...
+    # Unregister anon status component
+    from cubicweb.web.views.basecomponents import ApplLogo, AnonUserStatusLink
+    vreg.unregister(ApplLogo)
+    vreg.unregister(AnonUserStatusLink)
+    # Unregister register component in the right corner
+    from cubes.registration.views import RegisterLink
+    vreg.unregister(RegisterLink)