code: def initialize(self):
          '''
          Initialize the handler before requests are called
          '''
          if not hasattr(self.application, 'event_listener'):
              log.debug('init a listener')
              self.application.event_listener = EventListener(
                  self.application.mod_opts,
                  self.application.opts,
              )
  
          if not hasattr(self, 'saltclients'):
              local_client = salt.client.get_local_client(mopts=self.application.opts)
              self.saltclients = {
                  'local': local_client.run_job_async,
                  # not the actual client we'll use.. but its what we'll use to get args
                  'local_async': local_client.run_job_async,
                  'runner': salt.runner.RunnerClient(opts=self.application.opts).cmd_async,
                  'runner_async': None,  # empty, since we use the same client as `runner`
                  }
  
          if not hasattr(self, 'ckminions'):
              self.ckminions = salt.utils.minions.CkMinions(self.application.optsf initialize(self):
          '''
          Initialize the handler before requests are called
          '''
          if not hasattr(self.application, 'event_listener'):
              log.debug('init a listener')
              self.application.event_listener = EventListener(
                  self.application.mod_opts,
                  self.application.opts,
              )
  
          if not hasattr(self, 'saltclients'):
              local_client = salt.client.get_local_client(mopts=self.application.opts)
              self.saltclients = {
                  'local': local_client.run_job_async,
                  # not the actual client we'll use.. but its what we'll use to get args
                  'local_async': local_client.run_job_async,
                  'runner': salt.runner.RunnerClient(opts=self.application.opts).cmd_async,
                  'runner_async': None,  # empty, since we use the same client as `runner`
                  }
  
          if not hasattr(self, 'ckminions'):
              self.ckminions = salt.utils.minions.CkMinions(self.application.opts)
docs: Initialize the handler before requests are called