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
12bc5245
Commit
12bc5245
authored
Aug 25, 2014
by
Jason Bau
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #115 from Stanford-Online/sjang92/bs_fix
Fixed bulksettings test for rc
parents
a0e8606c
a6e6eb13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
cms/djangoapps/contentstore/utils.py
+10
-15
No files found.
cms/djangoapps/contentstore/utils.py
View file @
12bc5245
...
@@ -303,7 +303,7 @@ class BulkSettingsUtil():
...
@@ -303,7 +303,7 @@ class BulkSettingsUtil():
settings_dict
[
setting_type
]
=
value
settings_dict
[
setting_type
]
=
value
if
category
==
'vertical'
:
if
category
==
'vertical'
:
settings_dict
[
'ispublic'
]
=
compute_publish_state
(
child
)
settings_dict
[
'ispublic'
]
=
modulestore
()
.
compute_publish_state
(
child
)
return
settings_dict
return
settings_dict
...
@@ -316,22 +316,17 @@ class BulkSettingsUtil():
...
@@ -316,22 +316,17 @@ class BulkSettingsUtil():
- Chapters: Course url
- Chapters: Course url
- Problems: Unit url
- Problems: Unit url
"""
"""
handler
=
category
if
category
==
"chapter"
:
return
reverse
(
'contentstore.views.course_handler'
,
kwargs
=
{
'course_key_string'
:
unicode
(
parent
.
id
)})
elif
category
==
"sequential"
:
return
reverse
(
'contentstore.views.subsection_handler'
,
kwargs
=
{
'usage_key_string'
:
unicode
(
child
.
location
)})
elif
category
==
"unit"
:
return
reverse
(
'contentstore.views.unit_handler'
,
kwargs
=
{
'usage_key_string'
:
unicode
(
child
.
location
)})
if
category
==
"chapter"
:
usage_key_string
=
unicode
(
parent
.
id
)
elif
category
==
"sequential"
or
category
==
"unit"
:
usage_key_string
=
unicode
(
child
.
location
)
else
:
else
:
return
reverse
(
'contentstore.views.unit_handler'
,
usage_key_string
=
unicode
(
parent
.
location
)
kwargs
=
{
'usage_key_string'
:
unicode
(
parent
.
location
)})
handler
=
'unit'
return
reverse
(
'component_handler'
,
kwargs
=
{
'usage_key_string'
:
usage_key_string
,
'handler'
:
handler
})
@classmethod
@classmethod
def
get_bulksettings_metadata
(
cls
,
course
):
def
get_bulksettings_metadata
(
cls
,
course
):
...
...
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