def check_entrance_exam_problems_for_rescoring(exam_key):
 problems = get_problems_in_section(exam_key).values()
 if any((((not hasattr(problem, 'module_class')) or (not hasattr(problem.module_class, 'rescore_problem'))) for problem in problems)):
  msg = _('Not all problems in entrance exam support re-scoring.')
  raise NotImplementedError(msg)

def check_entrance_exam_problems_for_rescoring ( exam_key ) : problems = get_problems_in_section ( exam_key ) . values ( ) if any ( ( ( ( not hasattr ( problem , 'module_class' ) ) or ( not hasattr ( problem . module_class , 'rescore_problem' ) ) ) for problem in problems ) ) : msg = _ ( 'Not all problems in entrance exam support re-scoring.' ) raise NotImplementedError ( msg )
grabs all problem descriptors in exam and checks each descriptor to confirm that it supports re-scoring .