diff options
Diffstat (limited to 'repoze/bfg/tests/hybridapp/configure.zcml')
| -rw-r--r-- | repoze/bfg/tests/hybridapp/configure.zcml | 117 |
1 files changed, 0 insertions, 117 deletions
diff --git a/repoze/bfg/tests/hybridapp/configure.zcml b/repoze/bfg/tests/hybridapp/configure.zcml deleted file mode 100644 index a94409e26..000000000 --- a/repoze/bfg/tests/hybridapp/configure.zcml +++ /dev/null @@ -1,117 +0,0 @@ -<configure xmlns="http://namespaces.repoze.org/bfg"> - - <include package="repoze.bfg.includes" /> - - <!-- we want this view to "win" --> - <route - view=".views.route_view" - path="abc" - name="route" /> - - <!-- .. even though this one has a more specific context --> - <view - view=".views.global_view" - context="repoze.bfg.traversal.DefaultRootFactory" - /> - - <view - name="global2" - view=".views.global2_view" - context="repoze.bfg.traversal.DefaultRootFactory" - /> - - <route - path="def" - name="route2" - /> - - <!-- we want this view to win for route2 even though global view with - context is more specific --> - <view - route_name="route2" - view=".views.route2_view" - /> - - <!-- the global view should be found for this route --> - <route - path="ghi" - name="route3" - use_global_views="True" - /> - - <!-- the global view should not be found for this route --> - <route - path="jkl" - name="route4" - /> - - <!-- the global view should not be found for this route (/global2) --> - <route - path="mno/*traverse" - name="route5" - /> - - <!-- the global view should be found for this route (/global2) --> - <route - path="pqr/*traverse" - name="route6" - 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> |
