assistants.views

Views are created here.

Module Contents

assistants.views.quiz_completed_feedback(request, action_id)

Obtain statement forwards from LRS.

Parameters
  • request (WSGIRequest) – HttpRequest representing the current request. Not being used.

  • action_id (int) – The id of a action.

Returns

HTTP response.

Return type

HttpResponse

assistants.views.new_activity_notification(request, action_id)

Obtain statement forwards from LRS when “created” is called.

When created is for a course, do nothing. When it is for a module (activity) send a message about the new activity to all the enrolled users of that course. :param request: HttpRequest representing the current request. Not being used. :type request: WSGIRequest :param action_id: The id of a action. :type action_id: int :return: HTTP response. :rtype: HttpResponse

assistants.views.course_sync_agent_execute(request)

Execute update of database when a course changes.

Parameters

request (WSGIRequest) – HttpRequest representing the current request. Not being used.

Returns

HTTP response.

Return type

HttpResponse

assistants.views.user_sync_agent_execute(request)

Execute update of the database when a user changes.

Parameters

request (WSGIRequest) – Contains the request information of learning locker.

Returns

HTTP response.

Return type

HttpResponse

assistants.views.question_sync_agent_execute(request)

Execute update of the database when a question changes.

Parameters

request (WSGIRequest) – contains the request information of learning locker.

Returns

HTTP response.

Return type

HttpResponse