MCPcopy Index your code
hub / github.com/pyload/pyload / wrapper

Function wrapper

module/lib/bottle.py:1990–1998  ·  view source on GitHub ↗
(*args, **kargs)

Source from the content-addressed store, hash-verified

1988 def decorator(func):
1989 @functools.wraps(func)
1990 def wrapper(*args, **kargs):
1991 for key, value in vkargs.iteritems():
1992 if key not in kargs:
1993 abort(403, 'Missing parameter: %s' % key)
1994 try:
1995 kargs[key] = value(kargs[key])
1996 except ValueError:
1997 abort(403, 'Wrong parameter format for: %s' % key)
1998 return func(*args, **kargs)
1999 return wrapper
2000 return decorator
2001

Callers

nothing calls this directly

Calls 6

abortFunction · 0.85
HTTPErrorClass · 0.85
templateFunction · 0.85
iteritemsMethod · 0.45
copyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected