(self, name)
return wrapper
Return a decorator that attaches a callback to a hook. Three hooks
            are currently implemented:

            - before_request: Executed once before each request
            - after_request: Executed once after each request
            - app_reset: Called whenever :meth:`reset` is called.
Return a decorator that attaches a callback to a hook. Three hooks
            are currently implemented:
Return a decorator that attaches a callback to a hook . Three hooks are currently implemented :
def hook(self, name):
        """ Return a decorator that attaches a callback to a hook. Three hooks
            are currently implemented:

            - before_request: Executed once before each request
            - after_request: Executed once after each request
            - app_reset: Called whenever :meth:`reset` is called.
        """
        def wrapper(func):
            self.hooks.add(name, func)
            return func
        return wrapper
def hook ( self , name ) : def wrapper ( func ) : self . hooks . add ( name , func ) return func return wrapper