summaryrefslogtreecommitdiff
path: root/repoze/bfg/includes
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-06-19 09:24:49 +0000
committerChris McDonough <chrism@agendaless.com>2009-06-19 09:24:49 +0000
commitb606d97195187bdb33e334a7a40df501b30e2f48 (patch)
tree487a09938f408e02757846d62796b582b0902ce3 /repoze/bfg/includes
parent65697f35f2670fc93e695a7ddf083320f8a11f1a (diff)
downloadpyramid-b606d97195187bdb33e334a7a40df501b30e2f48.tar.gz
pyramid-b606d97195187bdb33e334a7a40df501b30e2f48.tar.bz2
pyramid-b606d97195187bdb33e334a7a40df501b30e2f48.zip
- A new ZCML directive was added named ``notfound``. This ZCML
directive can be used to name a view that should be invoked when the request can't otherwise be resolved to a view callable. For example:: <notfound view="helloworld.views.notfound_view"/> - A new ZCML directive was added named ``forbidden``. This ZCML directive can be used to name a view that should be invoked when a view callable for a request is found, but cannot be invoked due to an authorization failure. For example:: <forbidden view="helloworld.views.forbidden_view"/>
Diffstat (limited to 'repoze/bfg/includes')
-rw-r--r--repoze/bfg/includes/meta.zcml12
1 files changed, 12 insertions, 0 deletions
diff --git a/repoze/bfg/includes/meta.zcml b/repoze/bfg/includes/meta.zcml
index 83fb48e87..36129c5e3 100644
--- a/repoze/bfg/includes/meta.zcml
+++ b/repoze/bfg/includes/meta.zcml
@@ -16,6 +16,18 @@
handler="repoze.bfg.zcml.scan"
/>
+ <meta:directive
+ name="notfound"
+ schema="repoze.bfg.zcml.INotFoundViewDirective"
+ handler="repoze.bfg.zcml.notfound"
+ />
+
+ <meta:directive
+ name="forbidden"
+ schema="repoze.bfg.zcml.IForbiddenViewDirective"
+ handler="repoze.bfg.zcml.forbidden"
+ />
+
</meta:directives>
<meta:groupingDirective