parameters: (self, point)
docstring: Execute all registered Hooks (callbacks) for the given point.
docstring_summary: Execute all registered Hooks (callbacks) for the given point.
docstring_tokens: Execute all registered Hooks ( callbacks ) for the given point .
function: def run(self, point):
          """Execute all registered Hooks (callbacks) for the given point."""
          exc = None
          hooks = self[point]
          hooks.sort()
          for hook in hooks:
              # Some hooks are guaranteed to run even if others at
              # the same hookpoint fail. We will still log the failure,
              # but proceed on to the next hook. The only way
              # to stop all processing from one of these hooks is
              # to raise SystemExit and stop the whole server.
              if exc is None or hook.failsafe:
                  try:
                      hook()
                  except (KeyboardInterrupt, SystemExit):
                      raise
                  except (cherrypy.HTTPError, cherrypy.HTTPRedirect,
                          cherrypy.InternalRedirect):
                      exc = sys.exc_info()[1]
                  except:
                      exc = sys.exc_info()[1]
                      cherrypy.log(traceback=True, severity=40)
          if exc:
              raise exc
function_tokens: def run ( self , point ) : exc = None hooks = self [ point ] hooks . sort ( ) for hook in hooks : # Some hooks are guaranteed to run even if others at # the same hookpoint fail. We will still log the failure, # but proceed on to the next hook. The only way # to stop all processing from one of these hooks is # to raise SystemExit and stop the whole server. if exc is None or hook . failsafe : try : hook ( ) except ( KeyboardInterrupt , SystemExit ) : raise except ( cherrypy . HTTPError , cherrypy . HTTPRedirect , cherrypy . InternalRedirect ) : exc = sys . exc_info ( ) [ 1 ] except : exc = sys . exc_info ( ) [ 1 ] cherrypy . log ( traceback = True , severity = 40 ) if exc : raise exc