

def validate_settings(event):
    'Validate minerva specific settings.'
    key = val.info['key']
    val = event.info['value']
    if (key == 'minerva.geonames_folder'):
        ModelImporter.model('folder').load(val, exc=True, force=True)
        event.preventDefault().stopPropagation()

dataset/ETHPy150Open Kitware/minerva/server/loader.py validate_settings/VarMisuse@14/25 `event`->`val`