summaryrefslogtreecommitdiff
path: root/repoze/bfg/tests/hybridapp/configure.zcml
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-10-25 10:29:31 -0400
committerChris McDonough <chrism@plope.com>2010-10-25 10:29:31 -0400
commit64372401084889a440c9d990a0febc221e3e4b5c (patch)
treec8939a341505d19f19fa6918d264b4e1d95326f8 /repoze/bfg/tests/hybridapp/configure.zcml
parentc8e78c2037806f3e5dab57de635bf80865b7061d (diff)
downloadpyramid-64372401084889a440c9d990a0febc221e3e4b5c.tar.gz
pyramid-64372401084889a440c9d990a0febc221e3e4b5c.tar.bz2
pyramid-64372401084889a440c9d990a0febc221e3e4b5c.zip
first pass at converting bfg to pyramid namespace
Diffstat (limited to 'repoze/bfg/tests/hybridapp/configure.zcml')
-rw-r--r--repoze/bfg/tests/hybridapp/configure.zcml117
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>