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)
| 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 | |
| 199 | class HandlerWrapperTool(Tool): |
nothing calls this directly
no test coverage detected