From 0e21c22166f5160a2a64fad714d69d81897ef7d3 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 17 Aug 2008 17:32:54 +0000 Subject: - Add ```` directive. This directive currently allows only one attribute: ``reload_templates``. If e.g.:: is in your application's ZCML, you will not need to restart the appserver in order for ``z3c.pt`` or XSLT template changes to be detected and displayed. --- repoze/bfg/interfaces.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'repoze/bfg/interfaces.py') diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 4f1a203df..3a4c45373 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -27,7 +27,7 @@ class ITraverserFactory(Interface): """ Return an object that implements IPublishTraverser """ class ITemplateFactory(Interface): - def __call__(path): + def __call__(path, auto_reload=False): """ Return an an ITemplate given a filesystem path """ class ITemplate(Interface): @@ -79,3 +79,8 @@ class INewResponse(Interface): """ An event type that is emitted whenever any repoze.bfg view returns a response.""" response = Attribute('The response object') + +class ISettings(Interface): + """ Runtime settings for repoze.bfg """ + reload_templates = Attribute('Reload templates when they change') + -- cgit v1.2.3