[PATCH saem] [views] Unregister facet for simplified profiles

Sylvain Thenault sylvain.thenault at logilab.fr
Thu Apr 27 10:36:00 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1493281962 -7200
#      Thu Apr 27 10:32:42 2017 +0200
# Node ID 4d82b62b0e74e4d39153fd0ba395926139ef032e
# Parent  8d671007f358ce388165395d2831dbafc52b0741
# Available At http://hg.logilab.org/review/cubes/saem_ref
#              hg pull http://hg.logilab.org/review/cubes/saem_ref -r 4d82b62b0e74
[views] Unregister facet for simplified profiles

we should only have simplified profiles, no need to run queries for that
on each attempt to display facets.

diff --git a/cubicweb_saem_ref/views/__init__.py b/cubicweb_saem_ref/views/__init__.py
--- a/cubicweb_saem_ref/views/__init__.py
+++ b/cubicweb_saem_ref/views/__init__.py
@@ -460,8 +460,11 @@ def registration_callback(vreg):
     vreg.unregister(actions.ManageAction)
     vreg.unregister(actions.PoweredByAction)
     vreg.unregister(cwuser.UserPreferencesEntityAction)
     # global actions
     vreg.unregister(actions.SiteConfigurationAction)
+    # facets
+    from cubicweb_seda.views.facets import SimplifiedProfileFacet
+    vreg.unregister(SimplifiedProfileFacet)
 
     for menu_entry in main_navigation_menu():
         vreg.register(menu_entry)


More information about the saem-devel mailing list