enterprise.overrides package#

Submodules#

enterprise.overrides.course_home_progress module#

Pluggable override for the course home progress view username obfuscation.

enterprise.overrides.course_home_progress.enterprise_obfuscated_username(prev_fn, request, student)#

Return an enterprise-specific generic name for the student, or None.

This function overrides the default obfuscated_username implementation in lms/djangoapps/course_home_api/progress/views.py via the pluggable override mechanism. When an enterprise SSO learner has a configured generic name, that name is returned so the learner’s real username is not exposed in the progress tab.

Parameters:
  • prev_fn – the previous (default) implementation, called when the enterprise utility is unavailable.

  • request – the current HTTP request.

  • student – the Django User object for the student being viewed.

Returns:

the generic enterprise name, or None if the learner is not an enterprise SSO user with a configured generic name.

Return type:

str or None

Module contents#

Pluggable override implementations for edx-enterprise.