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._wrapper,
                                              priority=p, **conf)
Hook this tool into cherrypy.request.
dataset/ETHPy150Open clips/pattern/pattern/server/cherrypy/cherrypy/_cptools.py/HandlerTool._setup