def applyOverrides(repository):
 global overrides
 if (repository.baseName in overrides):
  settingTable = {}
  for setting in repository.preferences:
   settingTable[setting.name] = setting
  for (name, value) in overrides[repository.baseName].items():
   if (name in settingTable):
    settingTable[name].setValueToString(value)
   else:
    print 'Override not applied for', name, value

def applyOverrides ( repository ) : global overrides if ( repository . baseName in overrides ) : settingTable = { } for setting in repository . preferences : settingTable [ setting . name ] = setting for ( name , value ) in overrides [ repository . baseName ] . items ( ) : if ( name in settingTable ) : settingTable [ name ] . setValueToString ( value ) else : print 'Override not applied for' , name , value
apply any overrides that have been set at the command line .