def _section_membership(course, access, is_white_label):
 course_key = course.id
 ccx_enabled = (settings.FEATURES.get('CUSTOM_COURSES_EDX', False) and course.enable_ccx)
 section_data = {'section_key': 'membership', 'section_display_name': _('Membership'), 'access': access, 'ccx_is_enabled': ccx_enabled, 'is_white_label': is_white_label, 'enroll_button_url': reverse('students_update_enrollment', kwargs={'course_id': unicode(course_key)}), 'unenroll_button_url': reverse('students_update_enrollment', kwargs={'course_id': unicode(course_key)}), 'upload_student_csv_button_url': reverse('register_and_enroll_students', kwargs={'course_id': unicode(course_key)}), 'modify_beta_testers_button_url': reverse('bulk_beta_modify_access', kwargs={'course_id': unicode(course_key)}), 'list_course_role_members_url': reverse('list_course_role_members', kwargs={'course_id': unicode(course_key)}), 'modify_access_url': reverse('modify_access', kwargs={'course_id': unicode(course_key)}), 'list_forum_members_url': reverse('list_forum_members', kwargs={'course_id': unicode(course_key)}), 'update_forum_role_membership_url': reverse('update_forum_role_membership', kwargs={'course_id': unicode(course_key)})}
 return section_data

def _section_membership ( course , access , is_white_label ) : course_key = course . id ccx_enabled = ( settings . FEATURES . get ( 'CUSTOM_COURSES_EDX' , False ) and course . enable_ccx ) section_data = { 'section_key' : 'membership' , 'section_display_name' : _ ( 'Membership' ) , 'access' : access , 'ccx_is_enabled' : ccx_enabled , 'is_white_label' : is_white_label , 'enroll_button_url' : reverse ( 'students_update_enrollment' , kwargs = { 'course_id' : unicode ( course_key ) } ) , 'unenroll_button_url' : reverse ( 'students_update_enrollment' , kwargs = { 'course_id' : unicode ( course_key ) } ) , 'upload_student_csv_button_url' : reverse ( 'register_and_enroll_students' , kwargs = { 'course_id' : unicode ( course_key ) } ) , 'modify_beta_testers_button_url' : reverse ( 'bulk_beta_modify_access' , kwargs = { 'course_id' : unicode ( course_key ) } ) , 'list_course_role_members_url' : reverse ( 'list_course_role_members' , kwargs = { 'course_id' : unicode ( course_key ) } ) , 'modify_access_url' : reverse ( 'modify_access' , kwargs = { 'course_id' : unicode ( course_key ) } ) , 'list_forum_members_url' : reverse ( 'list_forum_members' , kwargs = { 'course_id' : unicode ( course_key ) } ) , 'update_forum_role_membership_url' : reverse ( 'update_forum_role_membership' , kwargs = { 'course_id' : unicode ( course_key ) } ) } return section_data
provide data for the corresponding dashboard section .