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
de52f823
Commit
de52f823
authored
Aug 20, 2014
by
Ben McMorran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PEP8/pylint cleanup
parent
ab3a8c96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
cms/djangoapps/contentstore/views/course.py
+6
-3
No files found.
cms/djangoapps/contentstore/views/course.py
View file @
de52f823
...
...
@@ -231,6 +231,7 @@ def course_handler(request, course_key_string=None):
else
:
return
HttpResponseNotFound
()
@login_required
@ensure_csrf_cookie
@require_http_methods
([
"GET"
])
...
...
@@ -367,7 +368,7 @@ def course_listing(request):
'run'
:
course
.
location
.
run
}
def
format_
unsucceeded_course_for
_view
(
uca
):
def
format_
in_process_course
_view
(
uca
):
"""
Return a dict of the data which the view requires for each unsucceeded course
"""
...
...
@@ -393,7 +394,7 @@ def course_listing(request):
if
not
isinstance
(
c
,
ErrorDescriptor
)
and
(
c
.
id
not
in
in_process_action_course_keys
)
]
in_process_course_actions
=
[
format_
unsucceeded_course_for
_view
(
uca
)
for
uca
in
in_process_course_actions
]
in_process_course_actions
=
[
format_
in_process_course
_view
(
uca
)
for
uca
in
in_process_course_actions
]
return
render_to_response
(
'index.html'
,
{
'courses'
:
courses
,
...
...
@@ -408,6 +409,7 @@ def course_listing(request):
def
_get_rerun_link_for_item
(
course_key
):
""" Returns the rerun link for the given course key. """
return
reverse_course_url
(
'course_rerun_handler'
,
course_key
)
...
...
@@ -446,7 +448,8 @@ def course_index(request, course_key):
'rerun_notification_id'
:
current_action
.
id
if
current_action
else
None
,
'course_release_date'
:
course_release_date
,
'settings_url'
:
settings_url
,
'notification_dismiss_url'
:
reverse_course_url
(
'course_notifications_handler'
,
current_action
.
course_key
,
kwargs
=
{
'notification_dismiss_url'
:
reverse_course_url
(
'course_notifications_handler'
,
current_action
.
course_key
,
kwargs
=
{
'action_state_id'
:
current_action
.
id
,
})
if
current_action
else
None
,
})
...
...
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