MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / make_default_app_wrapper

Function make_default_app_wrapper

21-async/mojifinder/bottle.py:2706–2711  ·  view source on GitHub ↗

Return a callable that relays calls to the current default app.

(name)

Source from the content-addressed store, hash-verified

2704# They all refer to the current default application.
2705
2706def make_default_app_wrapper(name):
2707 ''' Return a callable that relays calls to the current default app. '''
2708 @functools.wraps(getattr(Bottle, name))
2709 def wrapper(*a, **ka):
2710 return getattr(app(), name)(*a, **ka)
2711 return wrapper
2712
2713route = make_default_app_wrapper('route')
2714get = make_default_app_wrapper('get')

Callers 1

bottle.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected