def _validate_min_score(min_score):
 if min_score:
  message = (_('%(min_score)s is not a valid grade percentage') % {'min_score': min_score})
  try:
   min_score = int(min_score)
  except ValueError:
   raise GatingValidationError(message)
  if ((min_score < 0) or (min_score > 100)):
   raise GatingValidationError(message)

def _validate_min_score ( min_score ) : if min_score : message = ( _ ( '%(min_score)s is not a valid grade percentage' ) % { 'min_score' : min_score } ) try : min_score = int ( min_score ) except ValueError : raise GatingValidationError ( message ) if ( ( min_score < 0 ) or ( min_score > 100 ) ) : raise GatingValidationError ( message )
validates the minimum score entered by the studio user .