def saveRepository(repository):
 for setting in repository.preferences:
  setting.setToDisplay()
 writeSettingsPrintMessage(repository)
 for saveListener in repository.saveListenerTable.values():
  saveListener()

def saveRepository ( repository ) : for setting in repository . preferences : setting . setToDisplay ( ) writeSettingsPrintMessage ( repository ) for saveListener in repository . saveListenerTable . values ( ) : saveListener ( )
set the entities to the dialog then write them .