def make_default_app_wrapper(name):

    @functools.wraps(getattr(Bottle, name))
    def wrapper(*a, **ka):
        return getattr(app(), name)(*a, **ka)

    return wrapper
Return a callable that relays calls to the current default app.
dataset/ETHPy150Open Arelle/Arelle/arelle/webserver/bottle.py/make_default_app_wrapper