def cancelRepository(repository):
 getReadRepository(repository)
 for setting in repository.displayEntities:
  if (setting in repository.preferences):
   setting.setStateToValue()

def cancelRepository ( repository ) : getReadRepository ( repository ) for setting in repository . displayEntities : if ( setting in repository . preferences ) : setting . setStateToValue ( )
read the repository then set all the entities to the read repository values .