[PATCH cubicweb] [pyramid/ctl/debugtoolbar] automatically include custom panels on -t

Laurent Peuch cortex at worlddomination.be
Wed Oct 30 07:29:56 CET 2019


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1564539380 -7200
#      Wed Jul 31 04:16:20 2019 +0200
# Node ID de99105c35426bba7be7cb2c0c5e47485832e2e7
# Parent  ae18da4dd535cb7ae40f0c7e106b01946a117fce
# Available At https://hg.logilab.org/users/lpeuch/cubicweb
#              hg pull https://hg.logilab.org/users/lpeuch/cubicweb -r de99105c3542
[pyramid/ctl/debugtoolbar] automatically include custom panels on -t

diff --git a/cubicweb/pyramid/__init__.py b/cubicweb/pyramid/__init__.py
--- a/cubicweb/pyramid/__init__.py
+++ b/cubicweb/pyramid/__init__.py
@@ -74,6 +74,9 @@ def settings_from_cwconfig(cwconfig, deb
             'pyramid.reload_templates': True,
         })
 
+        if debugtoolbar:
+            settings["debugtoolbar.includes"] = ["cubicweb.pyramid.debugtoolbar_panels"]
+
     for fname in settings_filenames:
         if os.path.exists(fname):
             cp = ConfigParser()



More information about the cubicweb-devel mailing list