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
a68cdd35
Commit
a68cdd35
authored
Mar 08, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add advanced_modules course setting back in.
parent
e3f7e602
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cms/djangoapps/contentstore/views.py
+1
-2
common/lib/xmodule/xmodule/course_module.py
+1
-0
No files found.
cms/djangoapps/contentstore/views.py
View file @
a68cdd35
...
...
@@ -297,8 +297,7 @@ def edit_unit(request, location):
# Check if there are any advanced modules specified in the course policy. These modules
# should be specified as a list of strings, where the strings are the names of the modules
# in ADVANCED_COMPONENT_TYPES that should be enabled for the course.
course_metadata
=
CourseMetadata
.
fetch
(
course
.
location
)
course_advanced_keys
=
course_metadata
.
get
(
ADVANCED_COMPONENT_POLICY_KEY
,
[])
course_advanced_keys
=
course
.
advanced_modules
# Set component types according to course policy file
component_types
=
list
(
COMPONENT_TYPES
)
...
...
common/lib/xmodule/xmodule/course_module.py
View file @
a68cdd35
...
...
@@ -178,6 +178,7 @@ class CourseDescriptor(SequenceDescriptor):
remote_gradebook
=
Object
(
scope
=
Scope
.
settings
,
default
=
{})
allow_anonymous
=
Boolean
(
scope
=
Scope
.
settings
,
default
=
True
)
allow_anonymous_to_peers
=
Boolean
(
scope
=
Scope
.
settings
,
default
=
False
)
advanced_modules
=
List
(
help
=
"Beta modules used in your course"
,
default
=
[],
scope
=
Scope
.
settings
)
has_children
=
True
info_sidebar_name
=
String
(
scope
=
Scope
.
settings
,
default
=
'Course Handouts'
)
...
...
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