def filter_factory(global_conf, **local_conf):
    conf = global_conf.copy()
    conf.update(local_conf)
    register_swift_info('staticweb')

    def staticweb_filter(app):
        return StaticWeb(app, conf)
    return staticweb_filter
Returns a Static Web WSGI filter for use with paste.deploy.
dataset/ETHPy150Open openstack/swift/swift/common/middleware/staticweb.py/filter_factory