MCPcopy
hub / github.com/cherrypy/cherrypy / wrapper

Function wrapper

cherrypy/test/test_config.py:81–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 handler = cherrypy.request.handler
80
81 def wrapper():
82 params = cherrypy.request.params
83 for name, coercer in value.copy().items():
84 try:
85 params[name] = coercer(params[name])
86 except KeyError:
87 pass
88 return handler()
89 cherrypy.request.handler = wrapper
90 elif key == 'output':
91 handler = cherrypy.request.handler

Callers

nothing calls this directly

Calls 2

handlerFunction · 0.85
itemsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…