"""
Abstract base middleware class
"""
__docformat__ = "reStructuredText"
[docs]class BaseMiddleware(object):
"""Abstract base middleware class.
Implementations in WsgiDAV include::
wsgidav.dir_browser.WsgiDavDirBrowser
wsgidav.error_printer.ErrorPrinter
wsgidav.debug_filter.WsgiDavDebugFilter
wsgidav.http_authenticator.HTTPAuthenticator
"""
def __init__(self, application, config):
pass
[docs] def __call__(self, environ, start_response):
raise NotImplementedError
[docs] @staticmethod
def isSuitable(config):
"""
Is this middleware class is suitable for current configuration?
Checking when initialize WsgiDAVApp and NOT on each request
"""
return True