diff options
Diffstat (limited to 'repoze/bfg/tests/exceptionviewapp')
| -rw-r--r-- | repoze/bfg/tests/exceptionviewapp/__init__.py | 1 | ||||
| -rw-r--r-- | repoze/bfg/tests/exceptionviewapp/configure.zcml | 44 | ||||
| -rw-r--r-- | repoze/bfg/tests/exceptionviewapp/models.py | 18 | ||||
| -rw-r--r-- | repoze/bfg/tests/exceptionviewapp/views.py | 17 |
4 files changed, 0 insertions, 80 deletions
diff --git a/repoze/bfg/tests/exceptionviewapp/__init__.py b/repoze/bfg/tests/exceptionviewapp/__init__.py deleted file mode 100644 index ef5fe8b12..000000000 --- a/repoze/bfg/tests/exceptionviewapp/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# a package diff --git a/repoze/bfg/tests/exceptionviewapp/configure.zcml b/repoze/bfg/tests/exceptionviewapp/configure.zcml deleted file mode 100644 index 680e065a6..000000000 --- a/repoze/bfg/tests/exceptionviewapp/configure.zcml +++ /dev/null @@ -1,44 +0,0 @@ -<configure xmlns="http://namespaces.repoze.org/bfg"> - - <include package="repoze.bfg.includes" /> - - <view view=".views.maybe"/> - - <view context=".models.NotAnException" - view=".views.no"/> - - <view context=".models.AnException" - view=".views.yes"/> - - <view name="raise_exception" - view=".views.raise_exception"/> - - <route name="route_raise_exception" - path="route_raise_exception" - view=".views.raise_exception"/> - - <route name="route_raise_exception2" - path="route_raise_exception2" - view=".views.raise_exception" - factory=".models.route_factory"/> - - <route name="route_raise_exception3" - path="route_raise_exception3" - view=".views.raise_exception" - factory=".models.route_factory2"/> - - <view context=".models.AnException" - route_name="route_raise_exception3" - view=".views.whoa"/> - - <route name="route_raise_exception4" - path="route_raise_exception4" - view=".views.raise_exception"/> - - <view context=".models.AnException" - route_name="route_raise_exception4" - view=".views.whoa"/> - -</configure> - - diff --git a/repoze/bfg/tests/exceptionviewapp/models.py b/repoze/bfg/tests/exceptionviewapp/models.py deleted file mode 100644 index fe407badc..000000000 --- a/repoze/bfg/tests/exceptionviewapp/models.py +++ /dev/null @@ -1,18 +0,0 @@ - -class NotAnException(object): - pass - -class AnException(Exception): - pass - -class RouteContext(object): - pass - -class RouteContext2(object): - pass - -def route_factory(*arg): - return RouteContext() - -def route_factory2(*arg): - return RouteContext2() diff --git a/repoze/bfg/tests/exceptionviewapp/views.py b/repoze/bfg/tests/exceptionviewapp/views.py deleted file mode 100644 index 1432618cf..000000000 --- a/repoze/bfg/tests/exceptionviewapp/views.py +++ /dev/null @@ -1,17 +0,0 @@ -from webob import Response -from models import AnException - -def no(request): - return Response('no') - -def yes(request): - return Response('yes') - -def maybe(request): - return Response('maybe') - -def whoa(request): - return Response('whoa') - -def raise_exception(request): - raise AnException() |
