A new application has been created, described in this ADR: https://github.com/openedx/edx-platform/pull/36545 have been created, as well as related models for mapping original content and new content created during the import process. Python and Django APIs, as well as a Django admin interface, will soon follow.
21 lines
769 B
Python
21 lines
769 B
Python
"""
|
|
This module contains the data models for the import_from_modulestore app.
|
|
"""
|
|
from django.db.models import TextChoices
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
class ImportStatus(TextChoices):
|
|
"""
|
|
The status of this modulestore-to-learning-core import.
|
|
"""
|
|
|
|
NOT_STARTED = 'not_started', _('Waiting to stage content')
|
|
STAGING = 'staging', _('Staging content for import')
|
|
STAGING_FAILED = _('Failed to stage content')
|
|
STAGED = 'staged', _('Content is staged and ready for import')
|
|
IMPORTING = 'importing', _('Importing staged content')
|
|
IMPORTING_FAILED = 'importing_failed', _('Failed to import staged content')
|
|
IMPORTED = 'imported', _('Successfully imported content')
|
|
CANCELED = 'canceled', _('Canceled')
|