cubicweb/pyramid/debugtoolbar_panels.py
changeset 12777 7c4216ed7497
parent 12776 3cbcbaead477
child 12795 30448f475a35
--- a/cubicweb/pyramid/debugtoolbar_panels.py	Fri Sep 27 07:00:51 2019 +0200
+++ b/cubicweb/pyramid/debugtoolbar_panels.py	Tue Nov 26 20:26:58 2019 +0100
@@ -19,7 +19,8 @@
 from pyramid_debugtoolbar.panels import DebugPanel
 
 from cubicweb.debug import subscribe_to_debug_channel, unsubscribe_to_debug_channel
-from cubicweb.misc.source_highlight import highlight_html, generate_css
+from cubicweb.misc.source_highlight import highlight_html, generate_css, has_pygments
+from cubicweb.pyramid.debug_source_code import source_code_url, source_code_url_in_stack
 
 
 class CubicWebDebugPanel(DebugPanel):
@@ -169,6 +170,8 @@
             'sql_queries': [],
             'highlight': highlight_html,
             'generate_css': generate_css,
+            'has_pygments': has_pygments,
+            'source_code_url_in_stack': source_code_url_in_stack,
         }
         subscribe_to_debug_channel("rql", self.collect_rql_queries)
         subscribe_to_debug_channel("sql", self.collect_sql_queries)
@@ -225,6 +228,8 @@
             'sql_queries': [],
             'highlight': highlight_html,
             'generate_css': generate_css,
+            'has_pygments': has_pygments,
+            'source_code_url_in_stack': source_code_url_in_stack,
         }
         subscribe_to_debug_channel("rql", self.collect_rql_queries)
         subscribe_to_debug_channel("sql", self.collect_sql_queries)