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
d2e6f6dc
Commit
d2e6f6dc
authored
Feb 26, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for code review comments
parent
3a6f43f3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
cms/djangoapps/contentstore/features/advanced-settings.py
+2
-1
cms/djangoapps/contentstore/views.py
+2
-2
No files found.
cms/djangoapps/contentstore/features/advanced-settings.py
View file @
d2e6f6dc
...
...
@@ -141,7 +141,8 @@ def create_entry(key, value):
def
delete_entry
(
index
):
""" index is 0-based
"""
Delete the nth entry where index is 0-based
"""
css
=
'.delete-button'
assert_true
(
world
.
browser
.
is_element_present_by_css
(
css
,
5
))
...
...
cms/djangoapps/contentstore/views.py
View file @
d2e6f6dc
...
...
@@ -1263,11 +1263,11 @@ def course_advanced_updates(request, org, course, name):
else
:
real_method
=
request
.
method
if
re
quest
.
method
==
'GET'
:
if
re
al_
method
==
'GET'
:
return
HttpResponse
(
json
.
dumps
(
CourseMetadata
.
fetch
(
location
)),
mimetype
=
"application/json"
)
elif
real_method
==
'DELETE'
:
return
HttpResponse
(
json
.
dumps
(
CourseMetadata
.
delete_key
(
location
,
json
.
loads
(
request
.
body
))),
mimetype
=
"application/json"
)
elif
re
quest
.
method
==
'POS
T'
:
elif
re
al_method
==
'POST'
or
real_method
==
'PU
T'
:
# NOTE: request.POST is messed up because expect_json cloned_request.POST.copy() is creating a defective entry w/ the whole payload as the key
return
HttpResponse
(
json
.
dumps
(
CourseMetadata
.
update_from_json
(
location
,
json
.
loads
(
request
.
body
))),
mimetype
=
"application/json"
)
...
...
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