def readSettingsFromText(repository, text):
 lines = archive.getTextLines(text)
 shortDictionary = {}
 for setting in repository.preferences:
  shortDictionary[getShortestUniqueSettingName(setting.name, repository.preferences)] = setting
 for lineIndex in xrange(len(lines)):
  setRepositoryToLine(lineIndex, lines, shortDictionary)

def readSettingsFromText ( repository , text ) : lines = archive . getTextLines ( text ) shortDictionary = { } for setting in repository . preferences : shortDictionary [ getShortestUniqueSettingName ( setting . name , repository . preferences ) ] = setting for lineIndex in xrange ( len ( lines ) ) : setRepositoryToLine ( lineIndex , lines , shortDictionary )
read settings from a text .