parameters: (self, filename, option_parser)
docstring: Call the validator function and implement overrides on all applicable
          settings.
docstring_summary: Call the validator function and implement overrides on all applicable
          settings.
docstring_tokens: Call the validator function and implement overrides on all applicable settings .
function: def validate_settings(self, filename, option_parser):
          """
          Call the validator function and implement overrides on all applicable
          settings.
          """
          for section in self.sections():
              for setting in self.options(section):
                  try:
                      option = option_parser.get_option_by_dest(setting)
                  except KeyError:
                      continue
                  if option.validator:
                      value = self.get(section, setting)
                      try:
                          new_value = option.validator(
                              setting, value, option_parser,
                              config_parser=self, config_section=section)
                      except Exception, error:
                          raise (ValueError(
                              'Error in config file "%s", section "[%s]":\n'
                              '    %s\n'
                              '        %s = %s'
                              % (filename, section, ErrorString(error),
                                 setting, value)), None, sys.exc_info()[2])
                      self.set(section, setting, new_value)
                  if option.overrides:
                      self.set(section, option.overrides, None)
function_tokens: def validate_settings ( self , filename , option_parser ) : for section in self . sections ( ) : for setting in self . options ( section ) : try : option = option_parser . get_option_by_dest ( setting ) except KeyError : continue if option . validator : value = self . get ( section , setting ) try : new_value = option . validator ( setting , value , option_parser , config_parser = self , config_section = section ) except Exception , error : raise ( ValueError ( 'Error in config file "%s", section "[%s]":\n' '    %s\n' '        %s = %s' % ( filename , section , ErrorString ( error ) , setting , value ) ) , None , sys . exc_info ( ) [ 2 ] ) self . set ( section , setting , new_value ) if option . overrides : self . set ( section , option . overrides , None )