openedx-learning 0.11.1__tar.gz → 0.11.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openedx_learning-0.11.1/openedx_learning.egg-info → openedx_learning-0.11.3}/PKG-INFO +5 -5
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/__init__.py +1 -1
- openedx_learning-0.11.3/openedx_learning/apps/authoring/collections/api.py +163 -0
- openedx_learning-0.11.3/openedx_learning/apps/authoring/collections/migrations/0003_collection_entities.py +38 -0
- openedx_learning-0.11.3/openedx_learning/apps/authoring/collections/models.py +207 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3/openedx_learning.egg-info}/PKG-INFO +5 -5
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning.egg-info/SOURCES.txt +1 -0
- openedx_learning-0.11.1/openedx_learning/apps/authoring/collections/api.py +0 -80
- openedx_learning-0.11.1/openedx_learning/apps/authoring/collections/models.py +0 -98
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/CHANGELOG.rst +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/LICENSE.txt +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/MANIFEST.in +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/README.rst +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/api/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/api/authoring.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/api/authoring_models.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/collections/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/collections/apps.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/collections/migrations/0001_initial.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/collections/migrations/0002_remove_collection_name_collection_created_by_and_more.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/collections/migrations/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/components/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/components/admin.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/components/api.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/components/apps.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/components/migrations/0001_initial.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/components/migrations/0002_alter_componentversioncontent_key.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/components/migrations/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/components/models.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/contents/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/contents/admin.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/contents/api.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/contents/apps.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/contents/migrations/0001_initial.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/contents/migrations/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/contents/models.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/publishing/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/publishing/admin.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/publishing/api.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/publishing/apps.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/publishing/migrations/0001_initial.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/publishing/migrations/0002_alter_learningpackage_key_and_more.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/publishing/migrations/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/publishing/model_mixins.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/publishing/models.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/contrib/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/contrib/media_server/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/contrib/media_server/apps.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/contrib/media_server/urls.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/contrib/media_server/views.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/lib/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/lib/admin_utils.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/lib/cache.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/lib/collations.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/lib/fields.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/lib/managers.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/lib/test_utils.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/lib/validators.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/py.typed +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning.egg-info/dependency_links.txt +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning.egg-info/not-zip-safe +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning.egg-info/requires.txt +4 -4
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning.egg-info/top_level.txt +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/admin.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/api.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/apps.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/data.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/import_export/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/import_export/actions.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/import_export/api.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/import_export/exceptions.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/import_export/import_plan.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/import_export/parsers.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/import_export/tasks.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/import_export/template.csv +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/import_export/template.json +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0001_initial.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0001_squashed.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0002_auto_20230718_2026.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0003_auto_20230721_1238.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0004_auto_20230723_2001.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0005_language_taxonomy.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0006_alter_objecttag_unique_together.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0006_auto_20230802_1631.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0007_tag_import_task_log_null_fix.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0008_taxonomy_description_not_null.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0009_alter_objecttag_object_id.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0010_cleanups.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0011_remove_required.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0012_language_taxonomy.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0013_tag_parent_blank.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0014_minor_fixes.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0015_taxonomy_export_id.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0016_object_tag_export_id.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/0017_alter_tagimporttask_status.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/migrations/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/models/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/models/base.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/models/import_export.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/models/system_defined.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/models/utils.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rest_api/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rest_api/paginators.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rest_api/urls.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rest_api/utils.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rest_api/v1/__init__.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rest_api/v1/permissions.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rest_api/v1/serializers.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rest_api/v1/urls.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rest_api/v1/views.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rest_api/v1/views_import.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rules.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/urls.py +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/py.typed +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/requirements/base.in +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/setup.cfg +0 -0
- {openedx_learning-0.11.1 → openedx_learning-0.11.3}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: openedx-learning
|
|
3
|
-
Version: 0.11.
|
|
3
|
+
Version: 0.11.3
|
|
4
4
|
Summary: Open edX Learning Core and Tagging.
|
|
5
5
|
Home-page: https://github.com/openedx/openedx-learning
|
|
6
6
|
Author: David Ormsbee
|
|
@@ -18,12 +18,12 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
19
|
Requires-Python: >=3.11
|
|
20
20
|
License-File: LICENSE.txt
|
|
21
|
-
Requires-Dist:
|
|
21
|
+
Requires-Dist: Django<5.0
|
|
22
|
+
Requires-Dist: djangorestframework<4.0
|
|
22
23
|
Requires-Dist: edx-drf-extensions
|
|
23
|
-
Requires-Dist: celery
|
|
24
24
|
Requires-Dist: attrs
|
|
25
|
-
Requires-Dist:
|
|
26
|
-
Requires-Dist:
|
|
25
|
+
Requires-Dist: rules<4.0
|
|
26
|
+
Requires-Dist: celery
|
|
27
27
|
|
|
28
28
|
Open edX Learning Core (and Tagging)
|
|
29
29
|
====================================
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Collections API (warning: UNSTABLE, in progress API)
|
|
3
|
+
"""
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
from datetime import datetime, timezone
|
|
7
|
+
|
|
8
|
+
from django.core.exceptions import ValidationError
|
|
9
|
+
from django.db.models import QuerySet
|
|
10
|
+
|
|
11
|
+
from ..publishing import api as publishing_api
|
|
12
|
+
from ..publishing.models import PublishableEntity
|
|
13
|
+
from .models import Collection
|
|
14
|
+
|
|
15
|
+
# The public API that will be re-exported by openedx_learning.apps.authoring.api
|
|
16
|
+
# is listed in the __all__ entries below. Internal helper functions that are
|
|
17
|
+
# private to this module should start with an underscore. If a function does not
|
|
18
|
+
# start with an underscore AND it is not in __all__, that function is considered
|
|
19
|
+
# to be callable only by other apps in the authoring package.
|
|
20
|
+
__all__ = [
|
|
21
|
+
"add_to_collection",
|
|
22
|
+
"create_collection",
|
|
23
|
+
"get_collection",
|
|
24
|
+
"get_collections",
|
|
25
|
+
"get_entity_collections",
|
|
26
|
+
"remove_from_collection",
|
|
27
|
+
"update_collection",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def create_collection(
|
|
32
|
+
learning_package_id: int,
|
|
33
|
+
title: str,
|
|
34
|
+
created_by: int | None,
|
|
35
|
+
description: str = "",
|
|
36
|
+
enabled: bool = True,
|
|
37
|
+
) -> Collection:
|
|
38
|
+
"""
|
|
39
|
+
Create a new Collection
|
|
40
|
+
"""
|
|
41
|
+
collection = Collection.objects.create(
|
|
42
|
+
learning_package_id=learning_package_id,
|
|
43
|
+
title=title,
|
|
44
|
+
created_by_id=created_by,
|
|
45
|
+
description=description,
|
|
46
|
+
enabled=enabled,
|
|
47
|
+
)
|
|
48
|
+
return collection
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def get_collection(collection_id: int) -> Collection:
|
|
52
|
+
"""
|
|
53
|
+
Get a Collection by ID
|
|
54
|
+
"""
|
|
55
|
+
return Collection.objects.get(id=collection_id)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def update_collection(
|
|
59
|
+
collection_id: int,
|
|
60
|
+
title: str | None = None,
|
|
61
|
+
description: str | None = None,
|
|
62
|
+
) -> Collection:
|
|
63
|
+
"""
|
|
64
|
+
Update a Collection
|
|
65
|
+
"""
|
|
66
|
+
collection = Collection.objects.get(id=collection_id)
|
|
67
|
+
|
|
68
|
+
# If no changes were requested, there's nothing to update, so just return
|
|
69
|
+
# the Collection as-is
|
|
70
|
+
if all(field is None for field in [title, description]):
|
|
71
|
+
return collection
|
|
72
|
+
|
|
73
|
+
if title is not None:
|
|
74
|
+
collection.title = title
|
|
75
|
+
if description is not None:
|
|
76
|
+
collection.description = description
|
|
77
|
+
|
|
78
|
+
collection.save()
|
|
79
|
+
return collection
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def add_to_collection(
|
|
83
|
+
collection_id: int,
|
|
84
|
+
entities_qset: QuerySet[PublishableEntity],
|
|
85
|
+
created_by: int | None = None,
|
|
86
|
+
) -> Collection:
|
|
87
|
+
"""
|
|
88
|
+
Adds a QuerySet of PublishableEntities to a Collection.
|
|
89
|
+
|
|
90
|
+
These Entities must belong to the same LearningPackage as the Collection, or a ValidationError will be raised.
|
|
91
|
+
|
|
92
|
+
PublishableEntities already in the Collection are silently ignored.
|
|
93
|
+
|
|
94
|
+
The Collection object's modified date is updated.
|
|
95
|
+
|
|
96
|
+
Returns the updated Collection object.
|
|
97
|
+
"""
|
|
98
|
+
collection = get_collection(collection_id)
|
|
99
|
+
learning_package_id = collection.learning_package_id
|
|
100
|
+
|
|
101
|
+
# Disallow adding entities outside the collection's learning package
|
|
102
|
+
invalid_entity = entities_qset.exclude(learning_package_id=learning_package_id).first()
|
|
103
|
+
if invalid_entity:
|
|
104
|
+
raise ValidationError(
|
|
105
|
+
f"Cannot add entity {invalid_entity.pk} in learning package {invalid_entity.learning_package_id} "
|
|
106
|
+
f"to collection {collection_id} in learning package {learning_package_id}."
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
collection.entities.add(
|
|
110
|
+
*entities_qset.all(),
|
|
111
|
+
through_defaults={"created_by_id": created_by},
|
|
112
|
+
)
|
|
113
|
+
collection.modified = datetime.now(tz=timezone.utc)
|
|
114
|
+
collection.save()
|
|
115
|
+
|
|
116
|
+
return collection
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def remove_from_collection(
|
|
120
|
+
collection_id: int,
|
|
121
|
+
entities_qset: QuerySet[PublishableEntity],
|
|
122
|
+
) -> Collection:
|
|
123
|
+
"""
|
|
124
|
+
Removes a QuerySet of PublishableEntities from a Collection.
|
|
125
|
+
|
|
126
|
+
PublishableEntities are deleted (in bulk).
|
|
127
|
+
|
|
128
|
+
The Collection's modified date is updated (even if nothing was removed).
|
|
129
|
+
|
|
130
|
+
Returns the updated Collection.
|
|
131
|
+
"""
|
|
132
|
+
collection = get_collection(collection_id)
|
|
133
|
+
|
|
134
|
+
collection.entities.remove(*entities_qset.all())
|
|
135
|
+
collection.modified = datetime.now(tz=timezone.utc)
|
|
136
|
+
collection.save()
|
|
137
|
+
|
|
138
|
+
return collection
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
def get_entity_collections(learning_package_id: int, entity_key: str) -> QuerySet[Collection]:
|
|
142
|
+
"""
|
|
143
|
+
Get all collections in the given learning package which contain this entity.
|
|
144
|
+
|
|
145
|
+
Only enabled collections are returned.
|
|
146
|
+
"""
|
|
147
|
+
entity = publishing_api.get_publishable_entity_by_key(
|
|
148
|
+
learning_package_id,
|
|
149
|
+
key=entity_key,
|
|
150
|
+
)
|
|
151
|
+
return entity.collections.filter(enabled=True).order_by("pk")
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def get_collections(learning_package_id: int, enabled: bool | None = True) -> QuerySet[Collection]:
|
|
155
|
+
"""
|
|
156
|
+
Get all collections for a given learning package
|
|
157
|
+
|
|
158
|
+
Enabled collections are returned by default.
|
|
159
|
+
"""
|
|
160
|
+
qs = Collection.objects.filter(learning_package_id=learning_package_id)
|
|
161
|
+
if enabled is not None:
|
|
162
|
+
qs = qs.filter(enabled=enabled)
|
|
163
|
+
return qs.select_related("learning_package").order_by('pk')
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Generated by Django 4.2.15 on 2024-08-29 00:05
|
|
2
|
+
|
|
3
|
+
import django.db.models.deletion
|
|
4
|
+
from django.conf import settings
|
|
5
|
+
from django.db import migrations, models
|
|
6
|
+
|
|
7
|
+
import openedx_learning.lib.validators
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Migration(migrations.Migration):
|
|
11
|
+
|
|
12
|
+
dependencies = [
|
|
13
|
+
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
14
|
+
('oel_publishing', '0002_alter_learningpackage_key_and_more'),
|
|
15
|
+
('oel_collections', '0002_remove_collection_name_collection_created_by_and_more'),
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
operations = [
|
|
19
|
+
migrations.CreateModel(
|
|
20
|
+
name='CollectionPublishableEntity',
|
|
21
|
+
fields=[
|
|
22
|
+
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
23
|
+
('created', models.DateTimeField(auto_now_add=True, validators=[openedx_learning.lib.validators.validate_utc_datetime])),
|
|
24
|
+
('collection', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='oel_collections.collection')),
|
|
25
|
+
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
|
|
26
|
+
('entity', models.ForeignKey(on_delete=django.db.models.deletion.RESTRICT, to='oel_publishing.publishableentity')),
|
|
27
|
+
],
|
|
28
|
+
),
|
|
29
|
+
migrations.AddField(
|
|
30
|
+
model_name='collection',
|
|
31
|
+
name='entities',
|
|
32
|
+
field=models.ManyToManyField(related_name='collections', through='oel_collections.CollectionPublishableEntity', to='oel_publishing.publishableentity'),
|
|
33
|
+
),
|
|
34
|
+
migrations.AddConstraint(
|
|
35
|
+
model_name='collectionpublishableentity',
|
|
36
|
+
constraint=models.UniqueConstraint(fields=('collection', 'entity'), name='oel_collections_cpe_uniq_col_ent'),
|
|
37
|
+
),
|
|
38
|
+
]
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Core models for Collections
|
|
3
|
+
|
|
4
|
+
TLDR Guidelines:
|
|
5
|
+
1. DO NOT modify these models to store full version snapshots.
|
|
6
|
+
2. DO NOT use these models to try to reconstruct historical versions of
|
|
7
|
+
Collections for fast querying.
|
|
8
|
+
|
|
9
|
+
If you're trying to do either of these things, you probably want a new model or
|
|
10
|
+
app. For more details, read on.
|
|
11
|
+
|
|
12
|
+
The goal of these models is to provide a lightweight method of organizing
|
|
13
|
+
PublishableEntities. The first use case for this is modeling the structure of a
|
|
14
|
+
v1 Content Library within a LearningPackage. This is what we'll use the
|
|
15
|
+
Collection model for.
|
|
16
|
+
|
|
17
|
+
An important thing to note here is that Collections are *NOT* publishable
|
|
18
|
+
entities themselves. They have no "Draft" or "Published" versions. Collections
|
|
19
|
+
are never "published", though the things inside of them are.
|
|
20
|
+
|
|
21
|
+
When a LibraryContentBlock makes use of a Content Library, it copies all of
|
|
22
|
+
the items it will use into the Course itself. It will also store a version
|
|
23
|
+
on the LibraryContentBlock -- this is a MongoDB ObjectID in v1 and an integer in
|
|
24
|
+
v2 Libraries. Later on, the LibraryContentBlock will want to check back to see
|
|
25
|
+
if any updates have been made, using its version as a key. If a new version
|
|
26
|
+
exists, the course team has the option of re-copying data from the Library.
|
|
27
|
+
|
|
28
|
+
ModuleStore based v1 Libraries and Blockstore-based v2 libraries both version
|
|
29
|
+
the entire library in a series of snapshots. This makes it difficult to have
|
|
30
|
+
very large libraries, which is an explicit goal for Modular Learning. In
|
|
31
|
+
Learning Core, we've moved to tracking the versions of individual Components to
|
|
32
|
+
address this issue. But that means we no longer have a single version indicator
|
|
33
|
+
for "has anything here changed"?
|
|
34
|
+
|
|
35
|
+
We *could* have put that version in the ``publishing`` app's PublishLog, but
|
|
36
|
+
that would make it too broad. We want the ability to eventually collapse many v1
|
|
37
|
+
Libraries into a single Learning Core backed v2 Library. If we tracked the
|
|
38
|
+
versioning in only a central location, then we'd have many false positives where
|
|
39
|
+
the version was bumped because something else in the Learning Package changed.
|
|
40
|
+
So instead, we're creating a new Collection model inside the LearningPackage to
|
|
41
|
+
track that concept.
|
|
42
|
+
|
|
43
|
+
A critical takeaway is that we don't have to store snapshots of every version of
|
|
44
|
+
a Collection, because that data has been copied over by the LibraryContentBlock.
|
|
45
|
+
We only need to store the current state of the Collection, and increment the
|
|
46
|
+
version numbers when changes happen. This will allow the LibraryContentBlock to
|
|
47
|
+
check in and re-copy over the latest version if the course team desires.
|
|
48
|
+
|
|
49
|
+
That's why these models only store the current state of a Collection. Unlike the
|
|
50
|
+
``components`` app, ``collections`` does not store fully materialized snapshots
|
|
51
|
+
of past versions. This is done intentionally in order to save space and reduce
|
|
52
|
+
the cost of writes. Collections may grow to be very large, and we don't want to
|
|
53
|
+
be writing N rows with every version, where N is the number of
|
|
54
|
+
PublishableEntities in a Collection.
|
|
55
|
+
|
|
56
|
+
MVP of these models does not store changesets, but we can add this when there's a
|
|
57
|
+
use case for it. The number of rows in these changesets would grow in proportion
|
|
58
|
+
to the number of things that are actually changing (instead of copying over
|
|
59
|
+
everything on every version). This is could be used to make it easier to figure out
|
|
60
|
+
what changed between two given versions of a Collection. A LibraryContentBlock
|
|
61
|
+
in a course would have stored the version number of the last time it copied data
|
|
62
|
+
from the Collection, and we can eventually surface this data to the user. Note that
|
|
63
|
+
while it may be possible to reconstruct past versions of Collections based off of
|
|
64
|
+
this changeset data, it's going to be a very slow process to do so, and it is
|
|
65
|
+
strongly discouraged.
|
|
66
|
+
"""
|
|
67
|
+
from __future__ import annotations
|
|
68
|
+
|
|
69
|
+
from django.conf import settings
|
|
70
|
+
from django.db import models
|
|
71
|
+
from django.utils.translation import gettext_lazy as _
|
|
72
|
+
|
|
73
|
+
from ....lib.fields import MultiCollationTextField, case_insensitive_char_field
|
|
74
|
+
from ....lib.validators import validate_utc_datetime
|
|
75
|
+
from ..publishing.models import LearningPackage, PublishableEntity
|
|
76
|
+
|
|
77
|
+
__all__ = [
|
|
78
|
+
"Collection",
|
|
79
|
+
"CollectionPublishableEntity",
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
class Collection(models.Model):
|
|
84
|
+
"""
|
|
85
|
+
Represents a collection of library components
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
id = models.AutoField(primary_key=True)
|
|
89
|
+
|
|
90
|
+
# Each collection belongs to a learning package
|
|
91
|
+
learning_package = models.ForeignKey(LearningPackage, on_delete=models.CASCADE)
|
|
92
|
+
|
|
93
|
+
title = case_insensitive_char_field(
|
|
94
|
+
null=False,
|
|
95
|
+
blank=False,
|
|
96
|
+
max_length=500,
|
|
97
|
+
help_text=_(
|
|
98
|
+
"The title of the collection."
|
|
99
|
+
),
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
description = MultiCollationTextField(
|
|
103
|
+
blank=True,
|
|
104
|
+
null=False,
|
|
105
|
+
default="",
|
|
106
|
+
max_length=10_000,
|
|
107
|
+
help_text=_(
|
|
108
|
+
"Provides extra information for the user about this collection."
|
|
109
|
+
),
|
|
110
|
+
db_collations={
|
|
111
|
+
"sqlite": "NOCASE",
|
|
112
|
+
"mysql": "utf8mb4_unicode_ci",
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
# We don't have api functions to handle the enabled field. This is a placeholder for future use and
|
|
117
|
+
# a way to "soft delete" collections.
|
|
118
|
+
enabled = models.BooleanField(
|
|
119
|
+
default=True,
|
|
120
|
+
help_text=_(
|
|
121
|
+
"Whether the collection is enabled or not."
|
|
122
|
+
),
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
created_by = models.ForeignKey(
|
|
126
|
+
settings.AUTH_USER_MODEL,
|
|
127
|
+
on_delete=models.SET_NULL,
|
|
128
|
+
null=True,
|
|
129
|
+
blank=True,
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
created = models.DateTimeField(
|
|
133
|
+
auto_now_add=True,
|
|
134
|
+
validators=[
|
|
135
|
+
validate_utc_datetime,
|
|
136
|
+
],
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
modified = models.DateTimeField(
|
|
140
|
+
auto_now=True,
|
|
141
|
+
validators=[
|
|
142
|
+
validate_utc_datetime,
|
|
143
|
+
],
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
entities: models.ManyToManyField[PublishableEntity, "CollectionPublishableEntity"] = models.ManyToManyField(
|
|
147
|
+
PublishableEntity,
|
|
148
|
+
through="CollectionPublishableEntity",
|
|
149
|
+
related_name="collections",
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
class Meta:
|
|
153
|
+
verbose_name_plural = "Collections"
|
|
154
|
+
indexes = [
|
|
155
|
+
models.Index(fields=["learning_package", "title"]),
|
|
156
|
+
]
|
|
157
|
+
|
|
158
|
+
def __repr__(self) -> str:
|
|
159
|
+
"""
|
|
160
|
+
Developer-facing representation of a Collection.
|
|
161
|
+
"""
|
|
162
|
+
return str(self)
|
|
163
|
+
|
|
164
|
+
def __str__(self) -> str:
|
|
165
|
+
"""
|
|
166
|
+
User-facing string representation of a Collection.
|
|
167
|
+
"""
|
|
168
|
+
return f"<{self.__class__.__name__}> ({self.id}:{self.title})"
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
class CollectionPublishableEntity(models.Model):
|
|
172
|
+
"""
|
|
173
|
+
Collection -> PublishableEntity association.
|
|
174
|
+
"""
|
|
175
|
+
collection = models.ForeignKey(
|
|
176
|
+
Collection,
|
|
177
|
+
on_delete=models.CASCADE,
|
|
178
|
+
)
|
|
179
|
+
entity = models.ForeignKey(
|
|
180
|
+
PublishableEntity,
|
|
181
|
+
on_delete=models.RESTRICT,
|
|
182
|
+
)
|
|
183
|
+
created_by = models.ForeignKey(
|
|
184
|
+
settings.AUTH_USER_MODEL,
|
|
185
|
+
on_delete=models.SET_NULL,
|
|
186
|
+
null=True,
|
|
187
|
+
blank=True,
|
|
188
|
+
)
|
|
189
|
+
created = models.DateTimeField(
|
|
190
|
+
auto_now_add=True,
|
|
191
|
+
validators=[
|
|
192
|
+
validate_utc_datetime,
|
|
193
|
+
],
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
class Meta:
|
|
197
|
+
constraints = [
|
|
198
|
+
# Prevent race conditions from making multiple rows associating the
|
|
199
|
+
# same Collection to the same Entity.
|
|
200
|
+
models.UniqueConstraint(
|
|
201
|
+
fields=[
|
|
202
|
+
"collection",
|
|
203
|
+
"entity",
|
|
204
|
+
],
|
|
205
|
+
name="oel_collections_cpe_uniq_col_ent",
|
|
206
|
+
)
|
|
207
|
+
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: openedx-learning
|
|
3
|
-
Version: 0.11.
|
|
3
|
+
Version: 0.11.3
|
|
4
4
|
Summary: Open edX Learning Core and Tagging.
|
|
5
5
|
Home-page: https://github.com/openedx/openedx-learning
|
|
6
6
|
Author: David Ormsbee
|
|
@@ -18,12 +18,12 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
19
|
Requires-Python: >=3.11
|
|
20
20
|
License-File: LICENSE.txt
|
|
21
|
-
Requires-Dist:
|
|
21
|
+
Requires-Dist: Django<5.0
|
|
22
|
+
Requires-Dist: djangorestframework<4.0
|
|
22
23
|
Requires-Dist: edx-drf-extensions
|
|
23
|
-
Requires-Dist: celery
|
|
24
24
|
Requires-Dist: attrs
|
|
25
|
-
Requires-Dist:
|
|
26
|
-
Requires-Dist:
|
|
25
|
+
Requires-Dist: rules<4.0
|
|
26
|
+
Requires-Dist: celery
|
|
27
27
|
|
|
28
28
|
Open edX Learning Core (and Tagging)
|
|
29
29
|
====================================
|
|
@@ -23,6 +23,7 @@ openedx_learning/apps/authoring/collections/apps.py
|
|
|
23
23
|
openedx_learning/apps/authoring/collections/models.py
|
|
24
24
|
openedx_learning/apps/authoring/collections/migrations/0001_initial.py
|
|
25
25
|
openedx_learning/apps/authoring/collections/migrations/0002_remove_collection_name_collection_created_by_and_more.py
|
|
26
|
+
openedx_learning/apps/authoring/collections/migrations/0003_collection_entities.py
|
|
26
27
|
openedx_learning/apps/authoring/collections/migrations/__init__.py
|
|
27
28
|
openedx_learning/apps/authoring/components/__init__.py
|
|
28
29
|
openedx_learning/apps/authoring/components/admin.py
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Collections API (warning: UNSTABLE, in progress API)
|
|
3
|
-
"""
|
|
4
|
-
from __future__ import annotations
|
|
5
|
-
|
|
6
|
-
from django.db.models import QuerySet
|
|
7
|
-
|
|
8
|
-
from .models import Collection
|
|
9
|
-
|
|
10
|
-
# The public API that will be re-exported by openedx_learning.apps.authoring.api
|
|
11
|
-
# is listed in the __all__ entries below. Internal helper functions that are
|
|
12
|
-
# private to this module should start with an underscore. If a function does not
|
|
13
|
-
# start with an underscore AND it is not in __all__, that function is considered
|
|
14
|
-
# to be callable only by other apps in the authoring package.
|
|
15
|
-
__all__ = [
|
|
16
|
-
"create_collection",
|
|
17
|
-
"get_collection",
|
|
18
|
-
"get_learning_package_collections",
|
|
19
|
-
"update_collection",
|
|
20
|
-
]
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
def create_collection(
|
|
24
|
-
learning_package_id: int,
|
|
25
|
-
title: str,
|
|
26
|
-
created_by: int | None,
|
|
27
|
-
description: str = "",
|
|
28
|
-
) -> Collection:
|
|
29
|
-
"""
|
|
30
|
-
Create a new Collection
|
|
31
|
-
"""
|
|
32
|
-
collection = Collection.objects.create(
|
|
33
|
-
learning_package_id=learning_package_id,
|
|
34
|
-
title=title,
|
|
35
|
-
created_by_id=created_by,
|
|
36
|
-
description=description,
|
|
37
|
-
)
|
|
38
|
-
return collection
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
def get_collection(collection_id: int) -> Collection:
|
|
42
|
-
"""
|
|
43
|
-
Get a Collection by ID
|
|
44
|
-
"""
|
|
45
|
-
return Collection.objects.get(id=collection_id)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
def update_collection(
|
|
49
|
-
collection_id: int,
|
|
50
|
-
title: str | None = None,
|
|
51
|
-
description: str | None = None,
|
|
52
|
-
) -> Collection:
|
|
53
|
-
"""
|
|
54
|
-
Update a Collection
|
|
55
|
-
"""
|
|
56
|
-
collection = Collection.objects.get(id=collection_id)
|
|
57
|
-
|
|
58
|
-
# If no changes were requested, there's nothing to update, so just return
|
|
59
|
-
# the Collection as-is
|
|
60
|
-
if all(field is None for field in [title, description]):
|
|
61
|
-
return collection
|
|
62
|
-
|
|
63
|
-
if title is not None:
|
|
64
|
-
collection.title = title
|
|
65
|
-
if description is not None:
|
|
66
|
-
collection.description = description
|
|
67
|
-
|
|
68
|
-
collection.save()
|
|
69
|
-
return collection
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
def get_learning_package_collections(learning_package_id: int) -> QuerySet[Collection]:
|
|
73
|
-
"""
|
|
74
|
-
Get all collections for a given learning package
|
|
75
|
-
|
|
76
|
-
Only enabled collections are returned
|
|
77
|
-
"""
|
|
78
|
-
return Collection.objects \
|
|
79
|
-
.filter(learning_package_id=learning_package_id, enabled=True) \
|
|
80
|
-
.select_related("learning_package")
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Core models for Collections
|
|
3
|
-
"""
|
|
4
|
-
from __future__ import annotations
|
|
5
|
-
|
|
6
|
-
from django.conf import settings
|
|
7
|
-
from django.db import models
|
|
8
|
-
from django.utils.translation import gettext_lazy as _
|
|
9
|
-
|
|
10
|
-
from ....lib.fields import MultiCollationTextField, case_insensitive_char_field
|
|
11
|
-
from ....lib.validators import validate_utc_datetime
|
|
12
|
-
from ..publishing.models import LearningPackage
|
|
13
|
-
|
|
14
|
-
__all__ = [
|
|
15
|
-
"Collection",
|
|
16
|
-
]
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class Collection(models.Model):
|
|
20
|
-
"""
|
|
21
|
-
Represents a collection of library components
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
id = models.AutoField(primary_key=True)
|
|
25
|
-
|
|
26
|
-
# Each collection belongs to a learning package
|
|
27
|
-
learning_package = models.ForeignKey(LearningPackage, on_delete=models.CASCADE)
|
|
28
|
-
|
|
29
|
-
title = case_insensitive_char_field(
|
|
30
|
-
null=False,
|
|
31
|
-
blank=False,
|
|
32
|
-
max_length=500,
|
|
33
|
-
help_text=_(
|
|
34
|
-
"The title of the collection."
|
|
35
|
-
),
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
description = MultiCollationTextField(
|
|
39
|
-
blank=True,
|
|
40
|
-
null=False,
|
|
41
|
-
default="",
|
|
42
|
-
max_length=10_000,
|
|
43
|
-
help_text=_(
|
|
44
|
-
"Provides extra information for the user about this collection."
|
|
45
|
-
),
|
|
46
|
-
db_collations={
|
|
47
|
-
"sqlite": "NOCASE",
|
|
48
|
-
"mysql": "utf8mb4_unicode_ci",
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
|
|
52
|
-
# We don't have api functions to handle the enabled field. This is a placeholder for future use and
|
|
53
|
-
# a way to "soft delete" collections.
|
|
54
|
-
enabled = models.BooleanField(
|
|
55
|
-
default=True,
|
|
56
|
-
help_text=_(
|
|
57
|
-
"Whether the collection is enabled or not."
|
|
58
|
-
),
|
|
59
|
-
)
|
|
60
|
-
|
|
61
|
-
created_by = models.ForeignKey(
|
|
62
|
-
settings.AUTH_USER_MODEL,
|
|
63
|
-
on_delete=models.SET_NULL,
|
|
64
|
-
null=True,
|
|
65
|
-
blank=True,
|
|
66
|
-
)
|
|
67
|
-
|
|
68
|
-
created = models.DateTimeField(
|
|
69
|
-
auto_now_add=True,
|
|
70
|
-
validators=[
|
|
71
|
-
validate_utc_datetime,
|
|
72
|
-
],
|
|
73
|
-
)
|
|
74
|
-
|
|
75
|
-
modified = models.DateTimeField(
|
|
76
|
-
auto_now=True,
|
|
77
|
-
validators=[
|
|
78
|
-
validate_utc_datetime,
|
|
79
|
-
],
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
class Meta:
|
|
83
|
-
verbose_name_plural = "Collections"
|
|
84
|
-
indexes = [
|
|
85
|
-
models.Index(fields=["learning_package", "title"]),
|
|
86
|
-
]
|
|
87
|
-
|
|
88
|
-
def __repr__(self) -> str:
|
|
89
|
-
"""
|
|
90
|
-
Developer-facing representation of a Collection.
|
|
91
|
-
"""
|
|
92
|
-
return str(self)
|
|
93
|
-
|
|
94
|
-
def __str__(self) -> str:
|
|
95
|
-
"""
|
|
96
|
-
User-facing string representation of a Collection.
|
|
97
|
-
"""
|
|
98
|
-
return f"<{self.__class__.__name__}> ({self.id}:{self.title})"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/api/authoring_models.py
RENAMED
|
File without changes
|
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/contents/api.py
RENAMED
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/apps/authoring/contents/apps.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/contrib/media_server/apps.py
RENAMED
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/contrib/media_server/urls.py
RENAMED
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning/contrib/media_server/views.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_learning.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/models/__init__.py
RENAMED
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/models/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/models/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rest_api/urls.py
RENAMED
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rest_api/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openedx_learning-0.11.1 → openedx_learning-0.11.3}/openedx_tagging/core/tagging/rest_api/v1/urls.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|