Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
8b0693f2
Commit
8b0693f2
authored
Nov 17, 2017
by
Nimisha Asthagiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add highlights_enabled_for_messaging course field
parent
8b8677a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
cms/djangoapps/models/settings/course_metadata.py
+2
-7
common/lib/xmodule/xmodule/course_module.py
+8
-0
No files found.
cms/djangoapps/models/settings/course_metadata.py
View file @
8b0693f2
...
...
@@ -28,6 +28,7 @@ class CourseMetadata(object):
'end'
,
'enrollment_start'
,
'enrollment_end'
,
'certificate_available_date'
,
'tabs'
,
'graceperiod'
,
'show_timezone'
,
...
...
@@ -59,6 +60,7 @@ class CourseMetadata(object):
'show_correctness'
,
'chrome'
,
'default_tab'
,
'highlights_enabled_for_messaging'
,
]
@classmethod
...
...
@@ -108,13 +110,6 @@ class CourseMetadata(object):
if
not
XBlockStudioConfigurationFlag
.
is_enabled
():
filtered_list
.
append
(
'allow_unsupported_xblocks'
)
# TODO: https://openedx.atlassian.net/browse/EDUCATOR-736
# Before we roll out the auto-certs feature, move this to a good, shared
# place such that we're not repeating code found in LMS.
switches
=
WaffleSwitchNamespace
(
name
=
u'certificates'
,
log_prefix
=
u'Certificates: '
)
if
not
switches
.
is_enabled
(
u'instructor_paced_only'
):
filtered_list
.
append
(
'certificate_available_date'
)
return
filtered_list
@classmethod
...
...
common/lib/xmodule/xmodule/course_module.py
View file @
8b0693f2
...
...
@@ -869,6 +869,14 @@ class CourseFields(object):
),
scope
=
Scope
.
settings
,
default
=
False
)
highlights_enabled_for_messaging
=
Boolean
(
display_name
=
_
(
"Highlights Enabled for Messaging"
),
help
=
_
(
"Enter true or false. If true, any highlights associated with content in the course will be messaged "
"to learners at their scheduled time."
),
scope
=
Scope
.
settings
,
default
=
False
)
class
CourseModule
(
CourseFields
,
SequenceModule
):
# pylint: disable=abstract-method
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment