#NEWLINE# def get_user_from_req( request , * args , **kwargs ) : #NEWLINE# #INDENT# '\n    Get the user from the request. This function is helpful when\n    using the require_*_permission_for_view decorators.\n\n    For example::\n    \n        @require_objs_permissions_for_view(\n            ["can_view_obj_detail"],\n            get_user_from_req,\n            get_objects_from_filter_func(Obj, 1),\n            ["GET"],\n        )\n        def view_obj_detail(request, obj_id):\n            ...\n            \n    @param request: the request object\n    @type request: C{HttpRequest}\n    ' #NEWLINE# return request . user