This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
23 lines
850 B
Python
23 lines
850 B
Python
"""AWS environment variables unique to the instructor plugin."""
|
|
|
|
|
|
import warnings
|
|
|
|
|
|
def plugin_settings(settings):
|
|
"""Settings for the instructor plugin."""
|
|
# Analytics Dashboard
|
|
settings.ANALYTICS_DASHBOARD_URL = settings.ENV_TOKENS.get(
|
|
"ANALYTICS_DASHBOARD_URL", settings.ANALYTICS_DASHBOARD_URL
|
|
)
|
|
settings.ANALYTICS_DASHBOARD_NAME = settings.ENV_TOKENS.get(
|
|
"ANALYTICS_DASHBOARD_NAME", settings.ANALYTICS_DASHBOARD_NAME
|
|
)
|
|
# Backward compatibility for deprecated feature names
|
|
if 'ENABLE_S3_GRADE_DOWNLOADS' in settings.FEATURES:
|
|
warnings.warn(
|
|
"'ENABLE_S3_GRADE_DOWNLOADS' is deprecated. Please use 'ENABLE_GRADE_DOWNLOADS' instead",
|
|
DeprecationWarning,
|
|
)
|
|
settings.FEATURES['ENABLE_GRADE_DOWNLOADS'] = settings.FEATURES['ENABLE_S3_GRADE_DOWNLOADS']
|