def self_evaluation_attempt(cls, answer_comment, **kwargs): context = cls.basic(**kwargs) context.context_activities = ContextActivities( # parent is assignment parent=ActivityList([ XAPIObject.self_evaluation_question(answer_comment.answer.assignment) ]), # grouping is course grouping=ActivityList([ XAPIObject.assignment(answer_comment.answer.assignment), XAPIObject.course(answer_comment.answer.assignment.course) ]) ) cls._add_sis_data(context, answer_comment.answer.assignment.course) return context
def self_evaluation_attempt(cls, answer_comment, **kwargs): context = cls.basic(**kwargs) context.context_activities = ContextActivities( # parent is assignment parent=ActivityList([ XAPIObject.self_evaluation_question(answer_comment.answer.assignment) ]), # grouping is course grouping=ActivityList([ XAPIObject.assignment(answer_comment.answer.assignment), XAPIObject.course(answer_comment.answer.assignment.course) ]) ) cls._add_sis_data(context, answer_comment.answer.assignment.course) return context
def self_evaluation_response(cls, answer_comment, **kwargs): context = cls.basic(**kwargs) context.context_activities = ContextActivities( # parent is self-evaulation question parent=ActivityList([ XAPIObject.self_evaluation_question(answer_comment.answer.assignment), XAPIObject.answer(answer_comment.answer) ]), # grouping is course + assignment + answer grouping=ActivityList([ XAPIObject.assignment(answer_comment.answer.assignment), XAPIObject.course(answer_comment.answer.assignment.course) ]) ) if answer_comment.attempt_uuid: context.context_activities.parent.append(XAPIObject.self_evaluation_attempt(answer_comment)) cls._add_sis_data(context, answer_comment.answer.assignment.course) return context
def self_evaluation_response(cls, answer_comment, **kwargs): context = cls.basic(**kwargs) context.context_activities = ContextActivities( # parent is self-evaulation question parent=ActivityList([ XAPIObject.self_evaluation_question(answer_comment.answer.assignment), XAPIObject.answer(answer_comment.answer) ]), # grouping is course + assignment + answer grouping=ActivityList([ XAPIObject.assignment(answer_comment.answer.assignment), XAPIObject.course(answer_comment.answer.assignment.course) ]) ) if answer_comment.attempt_uuid: context.context_activities.parent.append(XAPIObject.self_evaluation_attempt(answer_comment)) cls._add_sis_data(context, answer_comment.answer.assignment.course) return context