Exemple #1
0
    def initialise_from_control_file(self, config):
        Competition.initialise_from_control_file(self, config)

        try:
            matchup_defaults = load_settings(tournaments.matchup_settings, config, allow_missing=True)
        except ValueError, e:
            raise ControlFileError(str(e))
Exemple #2
0
    def initialise_from_control_file(self, config):
        Competition.initialise_from_control_file(self, config)

        try:
            matchup_defaults = load_settings(tournaments.matchup_settings,
                                             config,
                                             allow_missing=True)
        except ValueError, e:
            raise ControlFileError(str(e))
Exemple #3
0
    def initialise_from_control_file(self, config):
        Competition.initialise_from_control_file(self, config)

        matchup_settings = [
            setting for setting in competitions.game_settings
            if setting.name not in ('handicap', 'handicap_style')
        ] + [
            Setting('rounds', allow_none(interpret_int), default=None),
        ]
        try:
            matchup_parameters = load_settings(matchup_settings, config)
        except ValueError, e:
            raise ControlFileError(str(e))
Exemple #4
0
    def initialise_from_control_file(self, config):
        Competition.initialise_from_control_file(self, config)

        matchup_settings = [
            setting for setting in competitions.game_settings
            if setting.name not in ('handicap', 'handicap_style')
            ] + [
            Setting('rounds', allow_none(interpret_int), default=None),
            ]
        try:
            matchup_parameters = load_settings(matchup_settings, config)
        except ValueError, e:
            raise ControlFileError(str(e))
Exemple #5
0
 def control_file_globals(self):
     result = Competition.control_file_globals(self)
     result.update({"Matchup": Matchup_config})
     return result
Exemple #6
0
 def control_file_globals(self):
     result = Competition.control_file_globals(self)
     result.update({
         'Competitor': Competitor_config,
     })
     return result
Exemple #7
0
 def control_file_globals(self):
     result = Competition.control_file_globals(self)
     result.update({
         'Matchup': Matchup_config,
     })
     return result
Exemple #8
0
 def control_file_globals(self):
     result = Competition.control_file_globals(self)
     result.update({
         'Competitor' : Competitor_config,
         })
     return result