Return a callable that relays calls to the current default app.
(name)
| 3573 | |
| 3574 | |
| 3575 | def make_default_app_wrapper(name): |
| 3576 | """ Return a callable that relays calls to the current default app. """ |
| 3577 | |
| 3578 | @functools.wraps(getattr(Bottle, name)) |
| 3579 | def wrapper(*a, **ka): |
| 3580 | return getattr(app(), name)(*a, **ka) |
| 3581 | |
| 3582 | return wrapper |
| 3583 | |
| 3584 | |
| 3585 | route = make_default_app_wrapper('route') |
no outgoing calls
no test coverage detected
searching dependent graphs…