@task(base=BaseInstructorTask)
def reset_problem_attempts(entry_id, xmodule_instance_args):
 action_name = ugettext_noop('reset')
 update_fcn = partial(reset_attempts_module_state, xmodule_instance_args)
 visit_fcn = partial(perform_module_state_update, update_fcn, None)
 return run_main_task(entry_id, visit_fcn, action_name)

@ task ( base = BaseInstructorTask ) def reset_problem_attempts ( entry_id , xmodule_instance_args ) : action_name = ugettext_noop ( 'reset' ) update_fcn = partial ( reset_attempts_module_state , xmodule_instance_args ) visit_fcn = partial ( perform_module_state_update , update_fcn , None ) return run_main_task ( entry_id , visit_fcn , action_name )
resets problem attempts to zero for a particular problem for all students in a course .