コード例 #1
0
ファイル: ras.py プロジェクト: baskus/prendo
					+ "score control." )
				continue
			
			if stop_submit[score_control]:
				logging.info( "handle_submit: Stop submit True for %s, " \
					+ "continuing.", score_control)
				continue
			
			try:
				score_points = score["points"]
			except KeyError, ex:
				logging.warning( "handle_submit: Got KeyError when getting " \
					+ "score points." )
				continue
			
			if not Score._would_show_on_location_or_week_lists( location,
					score_points, score_control ):
				# Since the scores list is sorted descending by points, no
				# score of this control will be postable from now on.
				stop_submit[score_control] = True
				logging.info( "handle_submit: Setting stop submit for %s, " \
					+ "continuing.", score_control)
				# If there are no control types left to check, stop the loop.
				if not ( False in stop_submit.values() ):
					logging.info( "handle_submit: Found no False in " \
						+ "stop_submit, breaking." )
					break
				continue
			
			try:
				name = score["name"]
				comment = score["comment"]