'Verifies (and cleans up) the basic user-configurable options.'

def ValidateBasicConfig(self):

    all_good = True
    if self._default_enc:
        encoder.SetUserEncoding(self._default_enc)
    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)
    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
    if all_good:
        self._wildurl1 = self._filegen.GenerateWildURL(self._base_url)
        self._wildurl2 = self._filegen.GenerateURL(SITEINDEX_SUFFIX, self._base_url)
    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
    if (not all_good):
        output.Log('See    "example_config.xml"    for    more    information.', 0)
    return all_good
