parameters: (self)
return_statement: return True
docstring: Load the file types and disabled binaries as specified by the 
          loaded configuration file.
docstring_summary: Load the file types and disabled binaries as specified by the 
          loaded configuration file.
docstring_tokens: Load the file types and disabled binaries as specified by the loaded configuration file .
function: def load_config(self):
          """Load the file types and disabled binaries as specified by the 
          loaded configuration file.
          """
          x = self.cfg
          if not x:
              return False
  
          # load each file type, save names
          for prop, ty in [("inpproc", FT_INPUTPROC),
                           ("inputdb", FT_INPUTDB),
                           ("inputprops", FT_INPUTPROPS),
                           ("bispec", FT_BISPEC)]:
              try:
                  # section bmk2 with a particular property
                  val = x.get("bmk2", prop)
                  val = os.path.join(self.metadir, val)
                  if self.set_file(val, ty):
                      log.info("%s: Loaded file type %d ('%s')" % 
                               (self.config_file, ty, val))
                  else:
                      return False
              except ConfigParser.NoOptionError:
                  log.debug("%s: File type %d (property: '%s') not specified" % 
                            (self.config_file, ty, prop))
  
          # save disabled binaries into object
          try:
              val = x.get("bmk2", "disable_binaries")
              self.disable_binaries = set([xx.strip() for xx in val.split(",")])
          except ConfigParser.NoOptionError:
              pass
  
          # TODO find out what this is
          self.bin_config = None
          if x.has_section("default-config"):
              self.bin_config = self.section_to_dict(x, "default-config")
  
          self.cfg = x
          return True
function_tokens: def load_config ( self ) : x = self . cfg if not x : return False # load each file type, save names for prop , ty in [ ( "inpproc" , FT_INPUTPROC ) , ( "inputdb" , FT_INPUTDB ) , ( "inputprops" , FT_INPUTPROPS ) , ( "bispec" , FT_BISPEC ) ] : try : # section bmk2 with a particular property val = x . get ( "bmk2" , prop ) val = os . path . join ( self . metadir , val ) if self . set_file ( val , ty ) : log . info ( "%s: Loaded file type %d ('%s')" % ( self . config_file , ty , val ) ) else : return False except ConfigParser . NoOptionError : log . debug ( "%s: File type %d (property: '%s') not specified" % ( self . config_file , ty , prop ) ) # save disabled binaries into object try : val = x . get ( "bmk2" , "disable_binaries" ) self . disable_binaries = set ( [ xx . strip ( ) for xx in val . split ( "," ) ] ) except ConfigParser . NoOptionError : pass # TODO find out what this is self . bin_config = None if x . has_section ( "default-config" ) : self . bin_config = self . section_to_dict ( x , "default-config" ) self . cfg = x return True