diff options
Diffstat (limited to 'repoze/bfg/tests/hybridapp/configure.zcml')
| -rw-r--r-- | repoze/bfg/tests/hybridapp/configure.zcml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/repoze/bfg/tests/hybridapp/configure.zcml b/repoze/bfg/tests/hybridapp/configure.zcml index 56c6ea8db..a94409e26 100644 --- a/repoze/bfg/tests/hybridapp/configure.zcml +++ b/repoze/bfg/tests/hybridapp/configure.zcml @@ -58,4 +58,60 @@ use_global_views="True" /> + <route + path="error" + name="route7" + /> + + <view + route_name="route7" + view=".views.erroneous_view" + /> + + <route + path="error2" + name="route8" + /> + + <view + route_name="route8" + view=".views.erroneous_view" + /> + + <!-- we want this view to "win" for route7 as exception view --> + <view + view=".views.exception_view" + for="RuntimeError" + /> + + <!-- we want this view to "win" for route8 as exception view--> + <view + route_name="route8" + view=".views.exception2_view" + for="RuntimeError" + /> + + <route + path="error_sub" + name="route9" + /> + + <view + route_name="route9" + view=".views.erroneous_sub_view" + /> + + <!-- we want this view to "win" for route9 as exception view... --> + <view + route_name="route9" + view=".views.exception2_view" + for=".views.SuperException" + /> + + <!-- ...even if we have more context-specialized view for raised exception --> + <view + view=".views.exception_view" + for=".views.SubException" + /> + </configure> |
