From 85427fa0479aefd59bd55dca397b9a36277edade Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 14 Jul 2008 07:31:31 +0000 Subject: Less magical templated view model: make custom template views responsible for knowing their template's name. --- repoze/bfg/interfaces.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'repoze/bfg/interfaces.py') diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index eac3ecdae..005d30027 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -39,3 +39,7 @@ class IWSGIApplicationFactory(Interface): def __call__(context, request, view): """ Return an object that implements IWSGIApplication """ +class ITemplateFactory(Interface): + def __call__(template_path): + """ Return an IView given a template path """ + -- cgit v1.2.3