openedx.core package#
Subpackages#
- openedx.core.djangoapps package
- Subpackages
- openedx.core.djangoapps.ace_common package
- Subpackages
- Submodules
- openedx.core.djangoapps.ace_common.apps module
- openedx.core.djangoapps.ace_common.message module
- openedx.core.djangoapps.ace_common.policies module
- openedx.core.djangoapps.ace_common.template_context module
- openedx.core.djangoapps.ace_common.tracking module
- openedx.core.djangoapps.ace_common.utils module
- Module contents
- openedx.core.djangoapps.agreements package
- Submodules
- openedx.core.djangoapps.agreements.api module
- openedx.core.djangoapps.agreements.data module
- openedx.core.djangoapps.agreements.models module
- openedx.core.djangoapps.agreements.serializers module
- openedx.core.djangoapps.agreements.toggles module
- openedx.core.djangoapps.agreements.urls module
- openedx.core.djangoapps.agreements.views module
- Module contents
- openedx.core.djangoapps.api_admin package
- Subpackages
- Submodules
- openedx.core.djangoapps.api_admin.decorators module
- openedx.core.djangoapps.api_admin.forms module
- openedx.core.djangoapps.api_admin.models module
- openedx.core.djangoapps.api_admin.urls module
- openedx.core.djangoapps.api_admin.views module
- openedx.core.djangoapps.api_admin.widgets module
- Module contents
- openedx.core.djangoapps.auth_exchange package
- openedx.core.djangoapps.authz package
- openedx.core.djangoapps.bookmarks package
- Subpackages
- Submodules
- openedx.core.djangoapps.bookmarks.api module
- openedx.core.djangoapps.bookmarks.api_impl module
- openedx.core.djangoapps.bookmarks.apps module
- openedx.core.djangoapps.bookmarks.models module
- openedx.core.djangoapps.bookmarks.serializers module
- openedx.core.djangoapps.bookmarks.services module
- openedx.core.djangoapps.bookmarks.signals module
- openedx.core.djangoapps.bookmarks.tasks module
- openedx.core.djangoapps.bookmarks.urls module
- openedx.core.djangoapps.bookmarks.views module
- Module contents
- openedx.core.djangoapps.cache_toolbox package
- openedx.core.djangoapps.catalog package
- Subpackages
- Submodules
- openedx.core.djangoapps.catalog.api module
- openedx.core.djangoapps.catalog.apps module
- openedx.core.djangoapps.catalog.cache module
- openedx.core.djangoapps.catalog.constants module
- openedx.core.djangoapps.catalog.models module
- openedx.core.djangoapps.catalog.urls module
- openedx.core.djangoapps.catalog.utils module
- openedx.core.djangoapps.catalog.views module
- Module contents
- openedx.core.djangoapps.ccxcon package
- openedx.core.djangoapps.commerce package
- openedx.core.djangoapps.common_initialization package
- openedx.core.djangoapps.common_views package
- openedx.core.djangoapps.config_model_utils package
- openedx.core.djangoapps.content package
- openedx.core.djangoapps.content_libraries package
- Subpackages
- Submodules
- openedx.core.djangoapps.content_libraries.apps module
- openedx.core.djangoapps.content_libraries.constants module
- openedx.core.djangoapps.content_libraries.library_context module
- openedx.core.djangoapps.content_libraries.models module
- openedx.core.djangoapps.content_libraries.permissions module
- openedx.core.djangoapps.content_libraries.signal_handlers module
- openedx.core.djangoapps.content_libraries.tasks module
- openedx.core.djangoapps.content_libraries.urls module
- Module contents
- openedx.core.djangoapps.content_staging package
- Submodules
- openedx.core.djangoapps.content_staging.api module
- openedx.core.djangoapps.content_staging.apps module
- openedx.core.djangoapps.content_staging.data module
- openedx.core.djangoapps.content_staging.models module
- openedx.core.djangoapps.content_staging.serializers module
- openedx.core.djangoapps.content_staging.tasks module
- openedx.core.djangoapps.content_staging.urls module
- openedx.core.djangoapps.content_staging.views module
- Module contents
- openedx.core.djangoapps.content_tagging package
- Subpackages
- Submodules
- openedx.core.djangoapps.content_tagging.api module
- openedx.core.djangoapps.content_tagging.apps module
- openedx.core.djangoapps.content_tagging.auth module
- openedx.core.djangoapps.content_tagging.handlers module
- openedx.core.djangoapps.content_tagging.rules module
- openedx.core.djangoapps.content_tagging.tasks module
- openedx.core.djangoapps.content_tagging.toggles module
- openedx.core.djangoapps.content_tagging.types module
- openedx.core.djangoapps.content_tagging.urls module
- openedx.core.djangoapps.content_tagging.utils module
- Module contents
- openedx.core.djangoapps.contentserver package
- openedx.core.djangoapps.cookie_metadata package
- openedx.core.djangoapps.cors_csrf package
- Submodules
- openedx.core.djangoapps.cors_csrf.authentication module
- openedx.core.djangoapps.cors_csrf.decorators module
- openedx.core.djangoapps.cors_csrf.helpers module
- openedx.core.djangoapps.cors_csrf.middleware module
- openedx.core.djangoapps.cors_csrf.models module
- openedx.core.djangoapps.cors_csrf.views module
- Module contents
- openedx.core.djangoapps.course_apps package
- Subpackages
- Submodules
- openedx.core.djangoapps.course_apps.api module
- openedx.core.djangoapps.course_apps.apps module
- openedx.core.djangoapps.course_apps.handlers module
- openedx.core.djangoapps.course_apps.models module
- openedx.core.djangoapps.course_apps.plugins module
- openedx.core.djangoapps.course_apps.signals module
- openedx.core.djangoapps.course_apps.tasks module
- openedx.core.djangoapps.course_apps.toggles module
- Module contents
- openedx.core.djangoapps.course_date_signals package
- openedx.core.djangoapps.course_groups package
- Subpackages
- Submodules
- openedx.core.djangoapps.course_groups.api module
- openedx.core.djangoapps.course_groups.cohorts module
- openedx.core.djangoapps.course_groups.constants module
- openedx.core.djangoapps.course_groups.models module
- openedx.core.djangoapps.course_groups.partition_scheme module
- openedx.core.djangoapps.course_groups.permissions module
- openedx.core.djangoapps.course_groups.serializers module
- openedx.core.djangoapps.course_groups.urls module
- openedx.core.djangoapps.course_groups.views module
- Module contents
- openedx.core.djangoapps.course_live package
- Subpackages
- Submodules
- openedx.core.djangoapps.course_live.apps module
- openedx.core.djangoapps.course_live.models module
- openedx.core.djangoapps.course_live.permissions module
- openedx.core.djangoapps.course_live.plugins module
- openedx.core.djangoapps.course_live.providers module
- openedx.core.djangoapps.course_live.serializers module
- openedx.core.djangoapps.course_live.tab module
- openedx.core.djangoapps.course_live.urls module
- openedx.core.djangoapps.course_live.views module
- Module contents
- openedx.core.djangoapps.courseware_api package
- openedx.core.djangoapps.crawlers package
- openedx.core.djangoapps.credentials package
- Subpackages
- Submodules
- openedx.core.djangoapps.credentials.api module
- openedx.core.djangoapps.credentials.apps module
- openedx.core.djangoapps.credentials.helpers module
- openedx.core.djangoapps.credentials.models module
- openedx.core.djangoapps.credentials.signals module
- openedx.core.djangoapps.credentials.utils module
- Module contents
- openedx.core.djangoapps.credit package
- Subpackages
- Submodules
- openedx.core.djangoapps.credit.apps module
- openedx.core.djangoapps.credit.email_utils module
- openedx.core.djangoapps.credit.exceptions module
- openedx.core.djangoapps.credit.models module
- openedx.core.djangoapps.credit.routers module
- openedx.core.djangoapps.credit.serializers module
- openedx.core.djangoapps.credit.services module
- openedx.core.djangoapps.credit.signature module
- openedx.core.djangoapps.credit.tasks module
- openedx.core.djangoapps.credit.urls module
- openedx.core.djangoapps.credit.utils module
- openedx.core.djangoapps.credit.views module
- Module contents
- openedx.core.djangoapps.dark_lang package
- openedx.core.djangoapps.debug package
- openedx.core.djangoapps.discussions package
- Subpackages
- Submodules
- openedx.core.djangoapps.discussions.apps module
- openedx.core.djangoapps.discussions.handlers module
- openedx.core.djangoapps.discussions.models module
- openedx.core.djangoapps.discussions.permissions module
- openedx.core.djangoapps.discussions.plugins module
- openedx.core.djangoapps.discussions.serializers module
- openedx.core.djangoapps.discussions.services module
- openedx.core.djangoapps.discussions.tasks module
- openedx.core.djangoapps.discussions.transformers module
- openedx.core.djangoapps.discussions.url_helpers module
- openedx.core.djangoapps.discussions.urls module
- openedx.core.djangoapps.discussions.utils module
- openedx.core.djangoapps.discussions.views module
- Module contents
- openedx.core.djangoapps.django_comment_common package
- openedx.core.djangoapps.embargo package
- Subpackages
- Submodules
- openedx.core.djangoapps.embargo.api module
- openedx.core.djangoapps.embargo.exceptions module
- openedx.core.djangoapps.embargo.forms module
- openedx.core.djangoapps.embargo.messages module
- openedx.core.djangoapps.embargo.middleware module
- openedx.core.djangoapps.embargo.models module
- openedx.core.djangoapps.embargo.test_utils module
- openedx.core.djangoapps.embargo.urls module
- openedx.core.djangoapps.embargo.views module
- Module contents
- openedx.core.djangoapps.enrollments package
- Subpackages
- Submodules
- openedx.core.djangoapps.enrollments.api module
- openedx.core.djangoapps.enrollments.apps module
- openedx.core.djangoapps.enrollments.data module
- openedx.core.djangoapps.enrollments.enrollments_notifications module
- openedx.core.djangoapps.enrollments.errors module
- openedx.core.djangoapps.enrollments.forms module
- openedx.core.djangoapps.enrollments.paginators module
- openedx.core.djangoapps.enrollments.permissions module
- openedx.core.djangoapps.enrollments.serializers module
- openedx.core.djangoapps.enrollments.services module
- openedx.core.djangoapps.enrollments.urls module
- openedx.core.djangoapps.enrollments.views module
- Module contents
- openedx.core.djangoapps.external_user_ids package
- openedx.core.djangoapps.geoinfo package
- openedx.core.djangoapps.header_control package
- openedx.core.djangoapps.heartbeat package
- openedx.core.djangoapps.lang_pref package
- openedx.core.djangoapps.models package
- openedx.core.djangoapps.monkey_patch package
- openedx.core.djangoapps.notifications package
- Subpackages
- Submodules
- openedx.core.djangoapps.notifications.apps module
- openedx.core.djangoapps.notifications.audience_filters module
- openedx.core.djangoapps.notifications.base_notification module
- openedx.core.djangoapps.notifications.email_notifications module
- openedx.core.djangoapps.notifications.events module
- openedx.core.djangoapps.notifications.exceptions module
- openedx.core.djangoapps.notifications.grouping_notifications module
- openedx.core.djangoapps.notifications.handlers module
- openedx.core.djangoapps.notifications.models module
- openedx.core.djangoapps.notifications.notification_content module
- openedx.core.djangoapps.notifications.permissions module
- openedx.core.djangoapps.notifications.policies module
- openedx.core.djangoapps.notifications.serializers module
- openedx.core.djangoapps.notifications.settings_override module
- openedx.core.djangoapps.notifications.tasks module
- openedx.core.djangoapps.notifications.urls module
- openedx.core.djangoapps.notifications.utils module
- openedx.core.djangoapps.notifications.views module
- Module contents
- openedx.core.djangoapps.oauth_dispatch package
- Subpackages
- Submodules
- openedx.core.djangoapps.oauth_dispatch.api module
- openedx.core.djangoapps.oauth_dispatch.apps module
- openedx.core.djangoapps.oauth_dispatch.jwt module
- openedx.core.djangoapps.oauth_dispatch.models module
- openedx.core.djangoapps.oauth_dispatch.scopes module
- openedx.core.djangoapps.oauth_dispatch.toggles module
- openedx.core.djangoapps.oauth_dispatch.urls module
- openedx.core.djangoapps.oauth_dispatch.views module
- Module contents
- openedx.core.djangoapps.olx_rest_api package
- openedx.core.djangoapps.password_policy package
- openedx.core.djangoapps.plugin_api package
- openedx.core.djangoapps.plugins package
- openedx.core.djangoapps.profile_images package
- openedx.core.djangoapps.programs package
- Subpackages
- Submodules
- openedx.core.djangoapps.programs.api module
- openedx.core.djangoapps.programs.apps module
- openedx.core.djangoapps.programs.forms module
- openedx.core.djangoapps.programs.models module
- openedx.core.djangoapps.programs.signals module
- openedx.core.djangoapps.programs.tasks module
- openedx.core.djangoapps.programs.utils module
- Module contents
- openedx.core.djangoapps.safe_sessions package
- openedx.core.djangoapps.schedules package
- Subpackages
- Submodules
- openedx.core.djangoapps.schedules.apps module
- openedx.core.djangoapps.schedules.config module
- openedx.core.djangoapps.schedules.content_highlights module
- openedx.core.djangoapps.schedules.exceptions module
- openedx.core.djangoapps.schedules.message_types module
- openedx.core.djangoapps.schedules.models module
- openedx.core.djangoapps.schedules.resolvers module
- openedx.core.djangoapps.schedules.signals module
- openedx.core.djangoapps.schedules.tasks module
- openedx.core.djangoapps.schedules.utils module
- Module contents
- openedx.core.djangoapps.service_status package
- openedx.core.djangoapps.session_inactivity_timeout package
- openedx.core.djangoapps.signals package
- openedx.core.djangoapps.site_configuration package
- openedx.core.djangoapps.staticfiles package
- openedx.core.djangoapps.system_wide_roles package
- openedx.core.djangoapps.theming package
- Subpackages
- Submodules
- openedx.core.djangoapps.theming.apps module
- openedx.core.djangoapps.theming.checks module
- openedx.core.djangoapps.theming.finders module
- openedx.core.djangoapps.theming.helpers module
- openedx.core.djangoapps.theming.helpers_dirs module
- openedx.core.djangoapps.theming.helpers_static module
- openedx.core.djangoapps.theming.middleware module
- openedx.core.djangoapps.theming.models module
- openedx.core.djangoapps.theming.storage module
- openedx.core.djangoapps.theming.template_loaders module
- openedx.core.djangoapps.theming.urls module
- openedx.core.djangoapps.theming.views module
- Module contents
- openedx.core.djangoapps.user_api package
- Subpackages
- Submodules
- openedx.core.djangoapps.user_api.api module
- openedx.core.djangoapps.user_api.errors module
- openedx.core.djangoapps.user_api.helpers module
- openedx.core.djangoapps.user_api.legacy_urls module
- openedx.core.djangoapps.user_api.message_types module
- openedx.core.djangoapps.user_api.middleware module
- openedx.core.djangoapps.user_api.models module
- openedx.core.djangoapps.user_api.partition_schemes module
- openedx.core.djangoapps.user_api.permissions module
- openedx.core.djangoapps.user_api.rules module
- openedx.core.djangoapps.user_api.serializers module
- openedx.core.djangoapps.user_api.urls module
- openedx.core.djangoapps.user_api.views module
- Module contents
- openedx.core.djangoapps.user_authn package
- Subpackages
- Submodules
- openedx.core.djangoapps.user_authn.apps module
- openedx.core.djangoapps.user_authn.cookies module
- openedx.core.djangoapps.user_authn.exceptions module
- openedx.core.djangoapps.user_authn.message_types module
- openedx.core.djangoapps.user_authn.serializers module
- openedx.core.djangoapps.user_authn.signals module
- openedx.core.djangoapps.user_authn.tasks module
- openedx.core.djangoapps.user_authn.toggles module
- openedx.core.djangoapps.user_authn.urls module
- openedx.core.djangoapps.user_authn.urls_common module
- openedx.core.djangoapps.user_authn.utils module
- Module contents
- openedx.core.djangoapps.util package
- Subpackages
- Submodules
- openedx.core.djangoapps.util.apps module
- openedx.core.djangoapps.util.checks module
- openedx.core.djangoapps.util.forms module
- openedx.core.djangoapps.util.maintenance_banner module
- openedx.core.djangoapps.util.model_utils module
- openedx.core.djangoapps.util.ratelimit module
- openedx.core.djangoapps.util.row_delete module
- openedx.core.djangoapps.util.signals module
- openedx.core.djangoapps.util.test_forms module
- openedx.core.djangoapps.util.user_messages module
- openedx.core.djangoapps.util.user_utils module
- openedx.core.djangoapps.util.waffle module
- Module contents
- openedx.core.djangoapps.verified_track_content package
- openedx.core.djangoapps.video_config package
- Submodules
- openedx.core.djangoapps.video_config.forms module
- openedx.core.djangoapps.video_config.models module
- openedx.core.djangoapps.video_config.services module
- openedx.core.djangoapps.video_config.sharing module
- openedx.core.djangoapps.video_config.sharing_sites module
- openedx.core.djangoapps.video_config.toggles module
- openedx.core.djangoapps.video_config.transcripts_utils module
- Module contents
- openedx.core.djangoapps.video_pipeline package
- openedx.core.djangoapps.waffle_utils package
- openedx.core.djangoapps.xblock package
- openedx.core.djangoapps.xmodule_django package
- openedx.core.djangoapps.zendesk_proxy package
- openedx.core.djangoapps.ace_common package
- Module contents
- Subpackages
- openedx.core.djangolib package
- Subpackages
- Submodules
- openedx.core.djangolib.default_auth_classes module
- openedx.core.djangolib.fields module
- openedx.core.djangolib.js_utils module
- openedx.core.djangolib.markup module
- openedx.core.djangolib.model_mixins module
- openedx.core.djangolib.oauth2_retirement_utils module
- openedx.core.djangolib.translation_utils module
- Module contents
- openedx.core.lib package
- Subpackages
- openedx.core.lib.api package
- Submodules
- openedx.core.lib.api.authentication module
- openedx.core.lib.api.fields module
- openedx.core.lib.api.mixins module
- openedx.core.lib.api.parsers module
- openedx.core.lib.api.permissions module
- openedx.core.lib.api.serializers module
- openedx.core.lib.api.test_utils module
- openedx.core.lib.api.view_utils module
- Module contents
- openedx.core.lib.celery package
- openedx.core.lib.django_require package
- openedx.core.lib.gating package
- openedx.core.lib.license package
- openedx.core.lib.safe_lxml package
- openedx.core.lib.x_forwarded_for package
- openedx.core.lib.xblock_pipeline package
- openedx.core.lib.xblock_serializer package
- Submodules
- openedx.core.lib.xblock_serializer.api module
- openedx.core.lib.xblock_serializer.block_serializer module
- openedx.core.lib.xblock_serializer.data module
- openedx.core.lib.xblock_serializer.test_api module
- openedx.core.lib.xblock_serializer.test_utils module
- openedx.core.lib.xblock_serializer.utils module
- Module contents
- openedx.core.lib.xblock_services package
- openedx.core.lib.xblock_utils package
- openedx.core.lib.api package
- Submodules
- openedx.core.lib.cache_utils module
- openedx.core.lib.command_utils module
- openedx.core.lib.course_tabs module
- openedx.core.lib.courses module
- openedx.core.lib.derived module
- openedx.core.lib.django_courseware_routers module
- openedx.core.lib.django_test_client_utils module
- openedx.core.lib.dynamic_partitions_generators module
- openedx.core.lib.edx_api_utils module
- openedx.core.lib.exceptions module
- openedx.core.lib.extract_archive module
- openedx.core.lib.features_setting_proxy module
- openedx.core.lib.grade_utils module
- openedx.core.lib.graph_traversals module
- openedx.core.lib.hash_utils module
- openedx.core.lib.html_to_text module
- openedx.core.lib.json_utils module
- openedx.core.lib.jwt module
- openedx.core.lib.log_utils module
- openedx.core.lib.logsettings module
- openedx.core.lib.mail_utils module
- openedx.core.lib.mobile_utils module
- openedx.core.lib.request_utils module
- openedx.core.lib.rooted_paths module
- openedx.core.lib.session_serializers module
- openedx.core.lib.teams_config module
- openedx.core.lib.tempdir module
- openedx.core.lib.time_zone_utils module
- openedx.core.lib.url_utils module
- openedx.core.lib.user_util module
- Module contents
- Subpackages
- openedx.core.types package
Submodules#
openedx.core.apidocs module#
Open API support.
- openedx.core.apidocs.cursor_paginate_serializer(inner_serializer_class)#
Create a cursor-paginated version of a serializer.
This is hacky workaround for an edx-api-doc-tools issue described here: openedx/api-doc-tools#32
It assumes we are using cursor-style pagination and assumes a specific schema for the pages. It should be removed once we address the underlying issue.
- Parameters:
inner_serializer_class (type) – A subclass of
Serializer.
- Returns: type
A subclass of
Serializerto model the schema of a page of a cursor-paginated endpoint.
openedx.core.constants module#
Constants that are relevant to all of Open edX
openedx.core.process_warnings module#
openedx.core.pytest_hooks module#
Module to put all pytest hooks that modify pytest behaviour
- class openedx.core.pytest_hooks.DeferPlugin#
Bases:
objectSimple plugin to defer pytest-xdist hook functions.
- pytest_json_modifyreport(json_report)#
standard xdist hook function.
- pytest_sessionfinish(session)#
- openedx.core.pytest_hooks.create_file_name(dir_path, file_name_postfix, num=0)#
Used to create file name with this given structure: TEST_SUITE + “_” + file_name_postfix + “_ “ + num.json The env variable TEST_SUITE is set in jenkinsfile
This was necessary cause Pytest is run multiple times and we need to make sure old pytest warning json files are not being overwritten.
- openedx.core.pytest_hooks.pytest_configure(config)#
- openedx.core.pytest_hooks.pytest_json_modifyreport(json_report)#
The function is called by pytest-json-report plugin to only output warnings in json format.
Everything else is removed due to it already being saved by junitxml
–json-omit flag in does not allow us to remove everything but the warnings
(the environment metadata is one example of unremoveable data)
The json warning outputs are meant to be read by jenkins
- openedx.core.pytest_hooks.pytest_sessionfinish(session)#
Since multiple pytests are running, this makes sure warnings from different run are not overwritten
openedx.core.release module#
Information about the release line of this Open edX code.
- openedx.core.release.doc_version()#
The readthedocs.org version name used in documentation references.
Returns a short string like “latest” or “open-release-ficus.master”.
- openedx.core.release.skip_unless_master(func_or_class)#
Only run the decorated test for code on master or destined for master.
Use this to skip tests that we expect to fail on a named release branch. Please use carefully!
openedx.core.storage module#
Django storage backends for Open edX.
- class openedx.core.storage.DevelopmentStorage(*args, **kwargs)#
Bases:
NonPackagingMixin,ThemePipelineMixin,ThemeMixin,StaticFilesStorageThis class combines Django’s StaticFilesStorage class with several mixins that provide additional functionality. We use this version for development, so that we can skip packaging and optimization.
- class openedx.core.storage.OverwriteStorage(*args, **kwargs)#
Bases:
FileSystemStorageFileSystemStorage subclass which automatically overwrites any previous file with the same name; used in test runs to avoid test file proliferation. Copied from django-storages when this class was removed in version 1.6.
Comes from http://www.djangosnippets.org/snippets/976/ (even if it already exists in S3Storage for ages) See also Django #4339, which might add this functionality to core.
- deconstruct()#
Return a 3-tuple of class import path, positional arguments, and keyword arguments.
- get_available_name(name, max_length=None)#
Returns a filename that’s free on the target storage system, and available for new content to be written to.
- class openedx.core.storage.PipelineForgivingMixin#
Bases:
objectAn extension of the django-pipeline storage backend which forgives missing files.
- hashed_name(name, content=None, **kwargs)#
- stored_name(name)#
- class openedx.core.storage.ProductionMixin(*args, **kwargs)#
Bases:
PipelineForgivingMixin,OptimizedFilesMixin,ThemePipelineMixin,ThemeManifestFilesMixin,ThemeMixinThis class combines several mixins that provide additional functionality, and can be applied over an existing Storage. We use this version on production.
- class openedx.core.storage.ProductionS3Storage(*args, **kwargs)#
Bases:
ProductionMixin,S3Storage
- class openedx.core.storage.ProductionStorage(*args, **kwargs)#
Bases:
ProductionMixin,StaticFilesStorage
- openedx.core.storage.get_storage(storage_class=None, **kwargs)#
Returns a storage instance with the given class name and kwargs. If the class name is not given, an instance of the default storage is returned. Instances are cached so that if this function is called multiple times with the same arguments, the same instance is returned. This is useful if the storage implementation makes http requests when instantiated, for example.
openedx.core.toggles module#
Feature toggles used across the platform. Toggles should only be added to this module if we don’t have a better place for them. Generally speaking, they should be added to the most appropriate app or repo.
- openedx.core.toggles.enable_authz_course_authoring(course_key)#
Returns a boolean if the AuthZ for course authoring feature is enabled for the given course.
openedx.core.write_to_html module#
Class used to write pytest warning data into html format
- class openedx.core.write_to_html.HtmlOutlineWriter(fout)#
Bases:
objectwriter to handle html writing
- HEAD = '\n<!DOCTYPE html>\n<html>\n<head>\n<meta charset="utf-8" />\n</head>\n<style>\n.toggle-box{\ndisplay:none;\n}\n.toggle-box + label + div {\n display: none;\n}\n.toggle-box + label:before {\n color: #888;\n width: 10px;\n}\n\n.toggle-box:checked + label + div {\n margin-left: 3%;\n display: flex;\n flex-direction: column;\n}\ndiv{\nborder-style: solid;\n border-width: 1px 0px 0px 0px;\n border-radius: 3px;\n}\n\n.location {\nbackground-color: #edcca9\n}\n\nbody {\nbackground-color: cornsilk\n}\n\n.warning_text {\nbackground-color: #d5b593\n}\n.warning{\nbackground-color: #bd9f7d\n}\n.num {\nbackground-color: #a68968;\n}\n.lineno {\nbackground-color: #a68968;\n}\n\n\n}\n\n\n</style>\n<body>\n'#
- SECTION_END = '</div></div>'#
- SECTION_START = '<div class="{klass}">\n<input class="toggle-box {klass}" id="sect_{id:05d}" type="checkbox">\n<label for="sect_{id:05d}">{html}</label>\n<div>\n'#
- end_section()#
- start_section(html, klass=None)#
- write(html)#
Module contents#
This is the root package for all core Open edX functionality. In particular, the djangoapps subpackage is the location for all Django apps that are shared between LMS and CMS.
Note: the majority of the core functionality currently lives in the root common directory. All new Django apps should be created here instead, and the pre-existing apps will be moved here over time.