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

def _setup(self):

    conf = self._merged_args()
    p = conf.pop('priority', None)
    if (p is None):
        p = getattr(self.callable, 'priority', self._priority)
    cherrypy.serving.request.hooks.attach(self._point, self.callable, priority=p, **conf)
