summaryrefslogtreecommitdiff
path: root/repoze/bfg/interfaces.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-07-26 00:26:10 +0000
committerChris McDonough <chrism@agendaless.com>2010-07-26 00:26:10 +0000
commit250c0218d0bd7dab6ea7e16c7051af71394f2a63 (patch)
treed57c38c27b72a483a3db9b1150d20553a93472d8 /repoze/bfg/interfaces.py
parent2eb64f7a8bc7830667c3cb924bb5c13be3859b38 (diff)
downloadpyramid-250c0218d0bd7dab6ea7e16c7051af71394f2a63.tar.gz
pyramid-250c0218d0bd7dab6ea7e16c7051af71394f2a63.tar.bz2
pyramid-250c0218d0bd7dab6ea7e16c7051af71394f2a63.zip
merge generic_rendering branch
Diffstat (limited to 'repoze/bfg/interfaces.py')
-rw-r--r--repoze/bfg/interfaces.py9
1 files changed, 9 insertions, 0 deletions
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