From 04e182bbc0c077afcd921f0df4231020549dc217 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 14 Sep 2009 04:33:38 +0000 Subject: - A ZCML ``view`` directive (and the associated ``bfg_view`` decorator) can now accept an "attr" value. If an "attr" value is supplied, it is considered a method named of the view object to be called when the response is required. This is typically only good for views that are classes or instances (not so useful for functions, as functions typically have no methods other than ``__call__``). - A ZCML ``view`` directive (and the associated ``bfg_view`` decorator) can now accept a "template" value. If a "template" value is supplied, and the view callable returns a dictionary, the associated template is rendered with the dictionary as keyword arguments. --- repoze/bfg/includes/configure.zcml | 7 ++++++- repoze/bfg/includes/meta.zcml | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'repoze/bfg/includes') diff --git a/repoze/bfg/includes/configure.zcml b/repoze/bfg/includes/configure.zcml index 7e2036476..be8a69543 100644 --- a/repoze/bfg/includes/configure.zcml +++ b/repoze/bfg/includes/configure.zcml @@ -4,6 +4,8 @@ + + - + diff --git a/repoze/bfg/includes/meta.zcml b/repoze/bfg/includes/meta.zcml index 69e2eabc0..8195101be 100644 --- a/repoze/bfg/includes/meta.zcml +++ b/repoze/bfg/includes/meta.zcml @@ -70,6 +70,12 @@ handler="repoze.bfg.zcml.aclauthorizationpolicy" /> + + -- cgit v1.2.3