Files
edx-platform/openedx/core/djangoapps/embargo/messages.py
Peter Pinch 4f807dd702 INCR-155 Modernize openedx/core/djangoapps/video_config (#20408)
* run modernizer on openedx/core/djangoapps/embargo/

* sorting imports

* sort imports

* docstring

* try removing pylint disable
2019-05-06 16:43:42 -04:00

41 lines
943 B
Python

"""Define messages for restricted courses.
These messages are displayed to users when they are blocked
from either enrolling in or accessing a course.
"""
from __future__ import absolute_import
from collections import namedtuple
BlockedMessage = namedtuple('BlockedMessage', [
# A user-facing description of the message
'description',
# The mako template used to render the message
'template',
])
ENROLL_MESSAGES = {
'default': BlockedMessage(
description='Default',
template='embargo/default_enrollment.html'
),
'embargo': BlockedMessage(
description='Embargo',
template='static_templates/embargo.html'
)
}
COURSEWARE_MESSAGES = {
'default': BlockedMessage(
description='Default',
template='embargo/default_courseware.html'
),
'embargo': BlockedMessage(
description='Embargo',
template='static_templates/embargo.html'
)
}