(self)
Hook this tool into cherrypy.request.

        The standard CherryPy request object will automatically call this
        method when the tool is "turned on" in config.
Hook this tool into cherrypy.request.
Hook this tool into cherrypy . request .
def _setup(self):
        """Hook this tool into cherrypy.request.

        The standard CherryPy request object will automatically call this
        method when the tool is "turned on" in config.
        """
        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)
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 )