From 250c0218d0bd7dab6ea7e16c7051af71394f2a63 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 26 Jul 2010 00:26:10 +0000 Subject: merge generic_rendering branch --- repoze/bfg/interfaces.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'repoze/bfg/interfaces.py') diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 992ec80d9..def957dad 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -179,6 +179,15 @@ class IRendererFactory(Interface): def __call__(name): """ Return an object that implements ``IRenderer`` """ +class IRendererGlobalsFactory(Interface): + def __call__(system_values): + """ Return a dictionary of global renderer values (aka + top-level template names). The ``system_values`` value passed + in will be a dictionary that includes at least a ``request`` + key, indicating the current request, and the value + ``renderer_name``, which will be the name of the renderer in + use.""" + class ITemplateRenderer(IRenderer): def implementation(): """ Return the object that the underlying templating system -- cgit v1.2.3