def readConfig(verbose, **overrides):
    if IS_CLIENT:
        return makeDefaults()
    import XmlConfigReader
    reader = XmlConfigReader.makeReader(_CONFIG_FILE, '', verbose)
    result = _readBlueprints(reader, 'blueprints')
    for k in result:
        if k not in overrides:
            continue
        if k in ('isEnabled', 'useBlueprintsForUnlock',
                 'allowBlueprintsConversion'):
            result[k] &= overrides[k]
        result[k] = overrides[k]

    return result
def readConfig(verbose):
    reader = XmlConfigReader.makeReader(_CONFIG_FILE, 'goodies', verbose)
    return _readGoodies(reader, 'goodies')
Beispiel #3
0
def readConfig(verbose):
    reader = XmlConfigReader.makeReader(_CONFIG_FILE, 'goodies', verbose)
    return _readGoodies(reader, 'goodies')