MCPcopy
hub / github.com/cherrypy/cherrypy / _setup

Method _setup

cherrypy/_cptools.py:185–196  ·  view source on GitHub ↗

Hook this tool into cherrypy.request. The standard CherryPy request object will automatically call this method when the tool is "turned on" in config.

(self)

Source from the content-addressed store, hash-verified

183 cherrypy.serving.request.handler = None
184
185 def _setup(self):
186 """Hook this tool into cherrypy.request.
187
188 The standard CherryPy request object will automatically call
189 this method when the tool is "turned on" in config.
190 """
191 conf = self._merged_args()
192 p = conf.pop('priority', None)
193 if p is None:
194 p = getattr(self.callable, 'priority', self._priority)
195 cherrypy.serving.request.hooks.attach(self._point, self._wrapper,
196 priority=p, **conf)
197
198
199class HandlerWrapperTool(Tool):

Callers

nothing calls this directly

Calls 3

_merged_argsMethod · 0.80
popMethod · 0.80
attachMethod · 0.80

Tested by

no test coverage detected