openedx.features.lti_course_tab package#
Submodules#
openedx.features.lti_course_tab.tab module#
Code related to LTI course tab functionality.
- class openedx.features.lti_course_tab.tab.DiscussionLtiCourseTab(tab_dict)#
Bases:
LtiCourseLaunchMixin,TabFragmentViewMixin,EnrolledTabCourse tab that loads the associated LTI-based discussion provider in a tab.
- allow_multiple = False#
- is_dynamic = True#
- classmethod is_enabled(course, user=None)#
Check if the tab is enabled.
- priority = 41#
- title = 'Discussion'#
- type = 'lti_discussion'#
- class openedx.features.lti_course_tab.tab.LtiCourseLaunchMixin#
Bases:
objectMixin that encapsulates all LTI-related functionality from the View
- DEFAULT_ROLE = 'Student,Learner'#
- ROLE_MAP = {'instructor': 'Instructor', 'staff': 'Administrator', 'student': 'Student,Learner'}#
- render_to_fragment(request: HttpRequest, course: CourseBlock, **kwargs) Fragment#
Returns a fragment view for the LTI launch. :param request: request object :type request: HttpRequest :param course: A course object :type course: CourseBlock
- Returns:
A Fragment that embeds LTI in a course page.
- class openedx.features.lti_course_tab.tab.LtiCourseTab(tab_dict=None, name=None, lti_config_id=None)#
Bases:
LtiCourseLaunchMixin,EnrolledTabA tab to add custom LTI components to a course in a tab.
- allow_multiple = True#
- is_default = False#
- priority = 120#
- to_json()#
Return a dictionary representation of this tab.
- type = 'lti_tab'#
- classmethod validate(tab_dict, raise_error=True)#
Ensures that the specified tab_dict is valid.