lms.djangoapps.course_home_api package#
Subpackages#
- lms.djangoapps.course_home_api.course_metadata package
- lms.djangoapps.course_home_api.dates package
- lms.djangoapps.course_home_api.outline package
- Subpackages
- Submodules
- lms.djangoapps.course_home_api.outline.serializers module
- lms.djangoapps.course_home_api.outline.views module
CourseNavigationBlocksViewCourseNavigationBlocksView.COURSE_BLOCKS_CACHE_KEY_TEMPLATECourseNavigationBlocksView.COURSE_BLOCKS_CACHE_TIMEOUTCourseNavigationBlocksView.aggregator_block_typesCourseNavigationBlocksView.authentication_classesCourseNavigationBlocksView.completable_block_typesCourseNavigationBlocksView.completions_dictCourseNavigationBlocksView.filter_inaccessible_blocks()CourseNavigationBlocksView.get()CourseNavigationBlocksView.get_accessible_sections()CourseNavigationBlocksView.get_accessible_sequences()CourseNavigationBlocksView.get_block_completion_stat()CourseNavigationBlocksView.get_completable_children()CourseNavigationBlocksView.mark_complete_recursive()CourseNavigationBlocksView.serializer_class
OutlineTabViewUnableToDismissWelcomeMessageUnableToSaveCourseGoaldismiss_welcome_message()save_course_goal()unsubscribe_from_course_goal_by_token()
- Module contents
- lms.djangoapps.course_home_api.progress package
- Submodules
- lms.djangoapps.course_home_api.progress.api module
- lms.djangoapps.course_home_api.progress.serializers module
- lms.djangoapps.course_home_api.progress.views module
- Module contents
Submodules#
lms.djangoapps.course_home_api.apps module#
Course home api application configuration
lms.djangoapps.course_home_api.models module#
Course home api models file
- class lms.djangoapps.course_home_api.models.DisableProgressPageStackedConfig(*args, **kwargs)#
Bases:
StackedConfigurationModelStacked Config Model for disabling the frontend-app-learning progress page
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- STACKABLE_FIELDS = ('disabled',)#
- change_date#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- changed_by#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- changed_by_id#
- course#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- course_id#
- disabled#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- enabled#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_next_by_change_date(*, field=<django.db.models.fields.DateTimeField: change_date>, is_next=True, **kwargs)#
- get_previous_by_change_date(*, field=<django.db.models.fields.DateTimeField: change_date>, is_next=False, **kwargs)#
- id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- org#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- org_course#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- site#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- site_id#
lms.djangoapps.course_home_api.serializers module#
Course Home Serializers.
- class lms.djangoapps.course_home_api.serializers.DatesBannerSerializer(*args, **kwargs)#
Bases:
ReadOnlySerializerSerializer Mixin for displaying the dates banner. Can be added to any serializer who’s tab wants to display it.
- get_dates_banner_info(_)#
Serializer mixin for returning date banner info. Gets its input from the views course_key_string url parameter and the request’s user object.
- class lms.djangoapps.course_home_api.serializers.ReadOnlySerializer(*args, **kwargs)#
Bases:
SerializerSerializers have an abstract create & update, but we often don’t need them. So this silences the linter.
- create(validated_data)#
- update(instance, validated_data)#
- class lms.djangoapps.course_home_api.serializers.VerifiedModeSerializer(*args, **kwargs)#
Bases:
ReadOnlySerializerSerializer Mixin for displaying verified mode upgrade information.
Requires ‘course_overview’, ‘enrollment’, and ‘request’ from self.context.
- get_verified_mode(_)#
Return verified mode information, or None.
lms.djangoapps.course_home_api.tasks module#
Celery tasks used by the course_home_api app.
lms.djangoapps.course_home_api.toggles module#
Toggles for course home experience.
- lms.djangoapps.course_home_api.toggles.course_home_mfe_progress_tab_is_active(course_key)#
- lms.djangoapps.course_home_api.toggles.new_discussion_sidebar_view_is_enabled(course_key)#
Returns True if the new discussion sidebar view is enabled for the given course.
- lms.djangoapps.course_home_api.toggles.send_course_progress_analytics_for_student_is_enabled(course_key)#
Returns True if the course completion analytics feature is enabled for a given course.
lms.djangoapps.course_home_api.urls module#
Contains all the URLs for the Course Home
lms.djangoapps.course_home_api.utils module#
Utilities for views in the course home api
- lms.djangoapps.course_home_api.utils.get_course_or_403(*args, **kwargs)#
When we make requests to the various Learner Home API endpoints, we do not want to return the actual redirects, Instead we should return an error code. The redirect info is returned from the course metadata endpoint and the URL can be followed by whatever client is calling.
- Raises:
- 404 if course is not found –
- 403 if the requesting user does not have access to the course –