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
ea26b19d
Commit
ea26b19d
authored
Sep 11, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pylint/pep8 cleanup.
parent
1184a97b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cms/djangoapps/contentstore/views/checklist.py
+5
-5
No files found.
cms/djangoapps/contentstore/views/checklist.py
View file @
ea26b19d
...
...
@@ -38,7 +38,7 @@ def get_checklists(request, org, course, name):
course_module
.
save
()
modulestore
.
update_metadata
(
location
,
own_metadata
(
course_module
))
expanded_checklists
=
expand_all_
checklist_
action_urls
(
course_module
)
expanded_checklists
=
expand_all_action_urls
(
course_module
)
return
render_to_response
(
'checklists.html'
,
{
'context_course'
:
course_module
,
...
...
@@ -89,11 +89,11 @@ def update_checklist(request, org, course, name, checklist_index=None):
elif
request
.
method
==
'GET'
:
# In the JavaScript view initialize method, we do a fetch to get all
# the checklists.
expanded_checklists
=
expand_all_
checklist_
action_urls
(
course_module
)
expanded_checklists
=
expand_all_action_urls
(
course_module
)
return
JsonResponse
(
expanded_checklists
)
def
expand_all_
checklist_
action_urls
(
course_module
):
def
expand_all_action_urls
(
course_module
):
"""
Gets the checklists out of the course module and expands their action urls.
...
...
@@ -119,7 +119,7 @@ def expand_checklist_action_url(course_module, checklist):
"SettingsGrading"
:
"settings_grading"
,
"CourseOutline"
:
"course_index"
,
"Checklists"
:
"checklists"
,
}
}
for
item
in
expanded_checklist
.
get
(
'items'
):
action_url
=
item
.
get
(
'action_url'
)
if
action_url
not
in
urlconf_map
:
...
...
@@ -129,6 +129,6 @@ def expand_checklist_action_url(course_module, checklist):
'org'
:
course_module
.
location
.
org
,
'course'
:
course_module
.
location
.
course
,
'name'
:
course_module
.
location
.
name
,
})
})
return
expanded_checklist
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