def ValidateBasicConfig(self):
    all_good = True

    if self._default_enc:
      encoder.SetUserEncoding(self._default_enc)

    # Canonicalize the base_url
    if all_good and not self._base_url:
      output.Error('A site needs a "base_url" attribute.')
      all_good = False
    if all_good and not URL.IsAbsolute(self._base_url):
        output.Error('The "base_url" must be absolute, not relative: %s' %
                     self._base_url)
        all_good = False
    if all_good:
      self._base_url = URL.Canonicalize(self._base_url)
      if not self._base_url.endswith('/'):
        self._base_url = self._base_url + '/'
      output.Log('BaseURL is set to: %s' % self._base_url, 2)

    # Load store_into into a generator
    if all_good:
      if self._store_into:
        self._filegen = FilePathGenerator()
        if not self._filegen.Preload(self._store_into):
          all_good = False
      else:
        output.Error('A site needs a "store_into" attribute.')
        all_good = False

    # Ask the generator for patterns on what its output will look like
    if all_good:
      self._wildurl1 = self._filegen.GenerateWildURL(self._base_url)
      self._wildurl2 = self._filegen.GenerateURL(SITEINDEX_SUFFIX,
                                                 self._base_url)

    # Unify various forms of False
    if all_good:
      if self._suppress:
        if (type(self._suppress) == types.StringType) or (type(self._suppress)
                                 == types.UnicodeType):
          if (self._suppress == '0') or (self._suppress.lower() == 'false'):
            self._suppress = False

    # Clean up the sitemap_type
    if all_good:
      match = False
      # If sitemap_type is not specified, default to web sitemap
      if not self._sitemap_type:
        self._sitemap_type = 'web'
      else:
	self._sitemap_type = self._sitemap_type.lower()
        for pattern in SITEMAP_TYPES:
          if self._sitemap_type == pattern:
            match = True
            break
        if not match:
          output.Error('The "sitemap_type" value must be "web", "mobile" '
		       'or "news": %s' % self._sitemap_type)
          all_good = False
      output.Log('The Sitemap type is %s Sitemap.' % \
		        self._sitemap_type.upper(), 0)

    # Done
    if not all_good:
      output.Log('See "example_config.xml" for more information.', 0)
    return all_good
  #end def ValidateBasicConfig
Returns the dominance frontiers of all nodes of a directed graph.
dataset/ETHPy150Open benoitc/restkit/doc/sitemap_gen.py/Sitemap.ValidateBasicConfig--crossover with--dataset/ETHPy150Open networkx/networkx/networkx/algorithms/dominance.py/dominance_frontiers