def course_specific_register(request, course_id):
 course_key = SlashSeparatedCourseKey.from_deprecated_string(course_id)
 course = modulestore().get_course(course_key)
 if (not course):
  return redirect_with_get('register_user', request.GET)
 if (settings.FEATURES.get('AUTH_USE_SHIB') and course.enrollment_domain and course.enrollment_domain.startswith(SHIBBOLETH_DOMAIN_PREFIX)):
  return redirect_with_get('shib-login', request.GET)
 return redirect_with_get('register_user', request.GET)

def course_specific_register ( request , course_id ) : course_key = SlashSeparatedCourseKey . from_deprecated_string ( course_id ) course = modulestore ( ) . get_course ( course_key ) if ( not course ) : return redirect_with_get ( 'register_user' , request . GET ) if ( settings . FEATURES . get ( 'AUTH_USE_SHIB' ) and course . enrollment_domain and course . enrollment_domain . startswith ( SHIBBOLETH_DOMAIN_PREFIX ) ) : return redirect_with_get ( 'shib-login' , request . GET ) return redirect_with_get ( 'register_user' , request . GET )
dispatcher function for selecting the specific registration method required by the course .