aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-08-29 16:24:03 -0400
committerW. Trevor King <wking@tremily.us>2012-08-29 23:29:56 -0400
commit5a32d82284e54facf2f5dcb03ba37afe3805a609 (patch)
tree3252239fcf095bfdf89708fce55cd359b7d9ca52 /libbe/command
parent2950a115fb106ae73b87f87dc4865156d9311f8e (diff)
downloadbugseverywhere-5a32d82284e54facf2f5dcb03ba37afe3805a609.tar.gz
util:wsgi: add BEExceptionApp for translating storage exceptions.
This fixes .test_get_initial_value for the HTTP backend, because the tests use TestingHTTP.getURL, which only catch HandlerError, not the more specific storage exceptions.
Diffstat (limited to 'libbe/command')
-rw-r--r--libbe/command/serve.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/libbe/command/serve.py b/libbe/command/serve.py
index d1c7b9a..28a8a81 100644
--- a/libbe/command/serve.py
+++ b/libbe/command/serve.py
@@ -50,16 +50,6 @@ if libbe.TESTING:
import libbe.util.wsgi
-# return callback(environ, start_response)
-# except libbe.storage.NotReadable, e:
-# raise libbe.util.wsgi.HandlerError(403, 'Read permission denied')
-# except libbe.storage.NotWriteable, e:
-# raise libbe.util.wsgi.HandlerError(403, 'Write permission denied')
-# except libbe.storage.InvalidID, e:
-# raise libbe.util.wsgi.HandlerError(
-# self.http_user_error, 'InvalidID %s' % e)
-
-
class ServerApp (libbe.util.wsgi.WSGI_AppObject,
libbe.util.wsgi.WSGI_DataObject):
"""WSGI server for a BE Storage instance over HTTP.