@classmethod
    def middleware(cls, middle_func=None, app=None, **kw):
        if middle_func is None:
            return _UnboundMiddleware(cls, app, kw)
        if app is None:
            return _MiddlewareFactory(cls, middle_func, kw)
        return cls(middle_func, middleware_wraps=app, kwargs=kw)
Convert dipole object to source estimate and calculate forward operator
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webob-1.1.1/webob/dec.py/wsgify.middleware--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/forward/_make_forward.py/make_forward_dipole