MCPcopy
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

redirectFunction · 0.90
url_forFunction · 0.90
viewFunction · 0.50

Tested by

no test coverage detected