4f6d89ab51
The module used to simply "import swift", and then reference the classes: swift.common.middleware.catch_errors.CatchErrorsMiddleware swift.proxy.server.Application in order to very that the WSGI services loaded the proper filters and apps. However, those references only happen to work, as the WSGI loading would properly import the rest of the path so that the namespace reference would be okay. If the WSGI configuration were to change, or if the behavior of WSGI broke, instead of of seeing the actual failure condition, a module attribute error would result instead: AttributeError: 'module' object has no attribute 'middleware' The referenced names are now properly imported with this change to avoid misleading error conditions. Change-Id: Ifff4271bc5be1136bf17e4e5b291b01033d608db Signed-off-by: Peter Portante <peter.portante@redhat.com> |
||
---|---|---|
.. | ||
middleware | ||
ring | ||
__init__.py | ||
corrupted_example.db | ||
malformed_example.db | ||
test_bench.py | ||
test_bufferedhttp.py | ||
test_constraints.py | ||
test_daemon.py | ||
test_db_replicator.py | ||
test_db.py | ||
test_direct_client.py | ||
test_exceptions.py | ||
test_internal_client.py | ||
test_manager.py | ||
test_memcached.py | ||
test_swob.py | ||
test_utils.py | ||
test_wsgi.py |