(self)
Hook caching into cherrypy.request.
Hook caching into cherrypy.request.
Hook caching into cherrypy . request .
def _setup(self):
        """Hook caching into cherrypy.request."""
        conf = self._merged_args()

        p = conf.pop('priority', None)
        cherrypy.serving.request.hooks.attach('before_handler', self._wrapper,
                                              priority=p, **conf)
def _setup ( self ) : conf = self . _merged_args ( ) p = conf . pop ( 'priority' , None ) cherrypy . serving . request . hooks . attach ( 'before_handler' , self . _wrapper , priority = p , * * conf )