Merge pull request #28425 from edx/bseverino/name-affirmation-service
[MST-916] Set runtime service for Name Affirmation
This commit is contained in:
@@ -3098,6 +3098,7 @@ INSTALLED_APPS = [
|
||||
'openedx.features.content_type_gating',
|
||||
'openedx.features.discounts',
|
||||
'openedx.features.effort_estimation',
|
||||
'openedx.features.name_affirmation_api.apps.NameAffirmationApiConfig',
|
||||
|
||||
'lms.djangoapps.experiments',
|
||||
|
||||
|
||||
6
openedx/features/name_affirmation_api/README.rst
Normal file
6
openedx/features/name_affirmation_api/README.rst
Normal file
@@ -0,0 +1,6 @@
|
||||
Name Affirmation API
|
||||
--------------------
|
||||
|
||||
This directory contains a passthrough for the edx-name-affirmation plugin,
|
||||
in order to enable support in other plugins/packages such as edx-proctoring.
|
||||
See here: `https://github.com/edx/edx-name-affirmation`_.
|
||||
0
openedx/features/name_affirmation_api/__init__.py
Normal file
0
openedx/features/name_affirmation_api/__init__.py
Normal file
23
openedx/features/name_affirmation_api/apps.py
Normal file
23
openedx/features/name_affirmation_api/apps.py
Normal file
@@ -0,0 +1,23 @@
|
||||
"""
|
||||
Name Affirmation API App Configuration
|
||||
"""
|
||||
|
||||
|
||||
from django.apps import AppConfig
|
||||
from django.conf import settings
|
||||
from edx_proctoring.runtime import set_runtime_service
|
||||
|
||||
|
||||
class NameAffirmationApiConfig(AppConfig):
|
||||
"""
|
||||
Application Configuration for Misc Services.
|
||||
"""
|
||||
name = 'openedx.features.name_affirmation_api'
|
||||
|
||||
def ready(self):
|
||||
"""
|
||||
Connect services.
|
||||
"""
|
||||
if settings.FEATURES.get('ENABLE_SPECIAL_EXAMS'):
|
||||
from edx_name_affirmation.services import NameAffirmationService
|
||||
set_runtime_service('name_affirmation', NameAffirmationService())
|
||||
@@ -445,7 +445,7 @@ edx-i18n-tools==0.7.0
|
||||
# via ora2
|
||||
edx-milestones==0.3.2
|
||||
# via -r requirements/edx/base.in
|
||||
edx-name-affirmation==0.3.1
|
||||
edx-name-affirmation==0.4.0
|
||||
# via -r requirements/edx/base.in
|
||||
edx-opaque-keys[django]==2.2.2
|
||||
# via
|
||||
|
||||
@@ -542,7 +542,7 @@ edx-lint==5.0.0
|
||||
# via -r requirements/edx/testing.txt
|
||||
edx-milestones==0.3.2
|
||||
# via -r requirements/edx/testing.txt
|
||||
edx-name-affirmation==0.3.1
|
||||
edx-name-affirmation==0.4.0
|
||||
# via -r requirements/edx/testing.txt
|
||||
edx-opaque-keys[django]==2.2.2
|
||||
# via
|
||||
|
||||
@@ -526,7 +526,7 @@ edx-lint==5.0.0
|
||||
# via -r requirements/edx/testing.in
|
||||
edx-milestones==0.3.2
|
||||
# via -r requirements/edx/base.txt
|
||||
edx-name-affirmation==0.3.1
|
||||
edx-name-affirmation==0.4.0
|
||||
# via -r requirements/edx/base.txt
|
||||
edx-opaque-keys[django]==2.2.2
|
||||
# via
|
||||
|
||||
Reference in New Issue
Block a user