From 8412558e2e8014432769a9262894ee5d07ce5973 Mon Sep 17 00:00:00 2001 From: jonathan vanasco Date: Mon, 28 Nov 2016 15:55:03 -0500 Subject: [PATCH] removed debugtoolbar feature. --- pyramid_mako/debugtoolbar/__init__.py | 0 pyramid_mako/debugtoolbar/panels/__init__.py | 0 pyramid_mako/debugtoolbar/panels/main.py | 24 ---------- .../panels/templates/main.dbtmako | 48 ------------------- 4 files changed, 72 deletions(-) delete mode 100644 pyramid_mako/debugtoolbar/__init__.py delete mode 100644 pyramid_mako/debugtoolbar/panels/__init__.py delete mode 100644 pyramid_mako/debugtoolbar/panels/main.py delete mode 100644 pyramid_mako/debugtoolbar/panels/templates/main.dbtmako diff --git a/pyramid_mako/debugtoolbar/__init__.py b/pyramid_mako/debugtoolbar/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/pyramid_mako/debugtoolbar/panels/__init__.py b/pyramid_mako/debugtoolbar/panels/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/pyramid_mako/debugtoolbar/panels/main.py b/pyramid_mako/debugtoolbar/panels/main.py deleted file mode 100644 index d21dc6d..0000000 --- a/pyramid_mako/debugtoolbar/panels/main.py +++ /dev/null @@ -1,24 +0,0 @@ -from pyramid_debugtoolbar.panels import DebugPanel -from pyramid_debugtoolbar.compat import text_ -from pyramid.interfaces import IRendererFactory -import pyramid_mako -_ = lambda x: x - - -class PyramidMakoMainDebugPanel(DebugPanel): - """ - A panel to display HTTP request and response headers. - """ - name = 'pyramid_mako' - has_content = True - template = 'pyramid_mako.debugtoolbar.panels:templates/main.dbtmako' - title = _('PyramidMako') - nav_title = title - - - def __init__(self, request): - self.registry = request.registry - all_renderers = request.registry.getAllUtilitiesRegisteredFor(IRendererFactory) - mako_renderers = [r for r in all_renderers if isinstance(r, pyramid_mako.MakoRendererFactory)] - self.mako_renderers = mako_renderers - self.data = {'mako_renderers': self.mako_renderers, } diff --git a/pyramid_mako/debugtoolbar/panels/templates/main.dbtmako b/pyramid_mako/debugtoolbar/panels/templates/main.dbtmako deleted file mode 100644 index ccfd60f..0000000 --- a/pyramid_mako/debugtoolbar/panels/templates/main.dbtmako +++ /dev/null @@ -1,48 +0,0 @@ -

Mako Renderers

- -% for renderer in mako_renderers: - - - - - - - - - - - - - ## - - - - - - - - - - ## - ## - ## - ## - ## -
renderer extensions${renderer.registered_extensions}
renderer${renderer}, ${id(renderer)}
lookup${renderer.lookup}, ${id(renderer.lookup)}${renderer.lookup.__dict__}
lookup directories - directories configured -
    - % for i in renderer.lookup.directories: -
  • ${i}
  • - % endfor -
-
lookup collection - templates that have already been loaded/compiled -
    - % for i in renderer.lookup._collection.keys(): -
  • ${i}
  • - % endfor -
-
renderer_factory${renderer.renderer_factory}${renderer.renderer_factory.__dict__}
-
- ## ${dir(renderer)} -% endfor