'View middleware'

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
    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
    return ret
