Code
Hub
Workspaces
Connect your AI tool
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pallets/flask
/ wrapped_view
Function
wrapped_view
examples/tutorial/flaskr/auth.py:23–27 · examples/tutorial/flaskr/auth.py::wrapped_view
(**kwargs)
Source
from the content-addressed store, hash-verified
21
22
@functools.wraps(view)
23
def
wrapped_view(**kwargs):
24
if
g.user is None:
25
return
redirect(url_for(
class
="st">"auth.login"))
26
27
return
view(**kwargs)
28
29
return
wrapped_view
30
Callers
nothing calls this directly
Calls
3
redirect
Function · 0.90
url_for
Function · 0.90
view
Function · 0.50
Tested by
no test coverage detected