[pyramid/ctl/debugtoolbar] automatically include custom panels on -t
authorLaurent Peuch <cortex@worlddomination.be>
Wed, 31 Jul 2019 04:16:20 +0200
changeset 12762 f14dde905818
parent 12761 10b8352b0208
child 12763 5c609202eb61
[pyramid/ctl/debugtoolbar] automatically include custom panels on -t
cubicweb/pyramid/__init__.py
--- a/cubicweb/pyramid/__init__.py	Thu Aug 01 20:30:16 2019 +0200
+++ b/cubicweb/pyramid/__init__.py	Wed Jul 31 04:16:20 2019 +0200
@@ -74,6 +74,9 @@
             '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()