def process_view(self, request, view_func, view_args, view_kwargs):
    self.augment_request_with_app(request, view_func)
    if not request._desktop_app:
      return None

    # Run the middlewares
    ret = None
    for middleware in self._get_middlewares(request._desktop_app, 'view'):
      ret = middleware(request, view_func, view_args, view_kwargs)
      if ret: return ret # short circuit
    return ret
View middleware
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/middleware.py/AppSpecificMiddleware.process_view