Remove unused 'fake_error' view
has been superseded by CommonView.bogus_error
This commit is contained in:
parent
f02d6d4b16
commit
737973f4fc
|
@ -98,16 +98,3 @@ class View(object):
|
||||||
filename = os.path.basename(path).encode('ascii', 'replace')
|
filename = os.path.basename(path).encode('ascii', 'replace')
|
||||||
response.headers[b'Content-Disposition'] = b'attachment; filename="{}"'.format(filename)
|
response.headers[b'Content-Disposition'] = b'attachment; filename="{}"'.format(filename)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
def fake_error(request):
|
|
||||||
"""
|
|
||||||
View which raises a fake error, to test exception handling.
|
|
||||||
"""
|
|
||||||
raise Exception("Fake error, to test exception handling.")
|
|
||||||
|
|
||||||
|
|
||||||
def includeme(config):
|
|
||||||
config.add_route('fake_error', '/fake-error')
|
|
||||||
config.add_view(fake_error, route_name='fake_error',
|
|
||||||
permission='admin')
|
|
||||||
|
|
Loading…
Reference in a new issue