/
githubmirror
/
edx-platform
Обзор
Документация
Войти
/
githubmirror
/
edx-platform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-ulmo
cms/djangoapps/contentstore/errors.py
18 строк
1 KB
Kshitij Sobti
feat: add support for zip files to course and library import code (#34191)
08 мар 2024, 20:51
Не верифицирован
08 мар 2024, 20:51
c3c0adf
Код
Авторство
О чём код?
""" User facing error messages during course import and export """ from django.utils.translation import gettext as _ COURSE_ALREADY_EXIST = _('Aborting import because a course with this id: {} already exists.') COURSE_PERMISSION_DENIED = _('Permission denied. You do not have write access to this course.') FILE_MISSING = _('Could not find the {0} file in the package.') FILE_NOT_FOUND = _('Uploaded Tar file not found. Try again.') INVALID_FILE_TYPE = _('We only support uploading a .tar.gz file.') LIBRARY_ALREADY_EXIST = _('Aborting import since a library with this id already exists.') OLX_VALIDATION_FAILED = _('Course olx validation failed. Please check your email.') PERMISSION_DENIED = _('Permission denied') UNKNOWN_ERROR_IN_IMPORT = _('Unknown error while importing course.') UNKNOWN_ERROR_IN_UNPACKING = _('An Unknown error occurred during the unpacking step.') UNKNOWN_USER_ID = _('Unknown User ID: {0}') UNSAFE_ARCHIVE_FILE = _('Unsafe archive file. Aborting import.') USER_PERMISSION_DENIED = _('User permission denied.')