diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-01-24 09:00:47 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-01-24 09:00:47 +0000 |
| commit | e1c2ee1bc3e73b32db7f1b0f5e41b19da05b3829 (patch) | |
| tree | c1bdaa083728305070b46b15f142bd2703d8c89a /repoze/bfg/tests/hybridapp/configure.zcml | |
| parent | fcbe0afda076982abf6e191c32cc3fea68620c56 (diff) | |
| download | pyramid-e1c2ee1bc3e73b32db7f1b0f5e41b19da05b3829.tar.gz pyramid-e1c2ee1bc3e73b32db7f1b0f5e41b19da05b3829.tar.bz2 pyramid-e1c2ee1bc3e73b32db7f1b0f5e41b19da05b3829.zip | |
Make sure global views don't match by default.
Diffstat (limited to 'repoze/bfg/tests/hybridapp/configure.zcml')
| -rw-r--r-- | repoze/bfg/tests/hybridapp/configure.zcml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/repoze/bfg/tests/hybridapp/configure.zcml b/repoze/bfg/tests/hybridapp/configure.zcml index 80e9e4fe5..56c6ea8db 100644 --- a/repoze/bfg/tests/hybridapp/configure.zcml +++ b/repoze/bfg/tests/hybridapp/configure.zcml @@ -14,6 +14,12 @@ context="repoze.bfg.traversal.DefaultRootFactory" /> + <view + name="global2" + view=".views.global2_view" + context="repoze.bfg.traversal.DefaultRootFactory" + /> + <route path="def" name="route2" @@ -39,4 +45,17 @@ 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" + /> + </configure> |
