docs: def _write_config(self, filedesc, verbose=False):
          ''' Write the current config to the given filedescriptor which has must
              be opened for writing.
              Only the config values different from the default value are written
  
              If the verbose switch is turned on the config file generated will
              have all values including the default values shown but they will
              be commented out. In addition the description of each paramters
              is stored before the value.
  
              @param filedesc: The file to write the config into
              @param verbose: The switch between the minimalistic and the more
                      verbose config file.
          '''
          desc = []
          for section in self.sections():
              if section.lower() in ('', 'hidden'):
                  continue
              desc.append("")
              desc.append('[{0}]'.format(section))
              for key in self.options(section):
                  descr, value_type, default = self.get_description(section, key)
                  if verbose:
                      desc.append(_format_message(descr, 78, "# "))
                      desc.append("# Type: [{0}]".format(str(value_type)))
                      desc.append("# {0}={1}".format(key, default))
                  if not self.get(section, key) == default:
                      desc.append('{0}={1}'.format(key,
                          self.get(section, key)))
                  if verbose:
                      desc.append("")
  
          filedesc.write("{0}\n".format("\n".join(desc[1:])))