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
5aa15954
Commit
5aa15954
authored
May 12, 2015
by
Nimisha Asthagiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor update to video_outline API.
parent
c54952b5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
lms/djangoapps/mobile_api/video_outlines/serializers.py
+6
-7
No files found.
lms/djangoapps/mobile_api/video_outlines/serializers.py
View file @
5aa15954
...
...
@@ -140,20 +140,19 @@ def find_urls(course_id, block, child_to_parent, request):
kwargs
=
{
'course_id'
:
unicode
(
course_id
)}
if
chapter_id
is
None
:
no_chapter
_url
=
reverse
(
"courseware"
,
kwargs
=
kwargs
,
request
=
request
)
return
no_chapter_url
,
no_chapter
_url
course
_url
=
reverse
(
"courseware"
,
kwargs
=
kwargs
,
request
=
request
)
return
course_url
,
course
_url
kwargs
[
'chapter'
]
=
chapter_id
if
section
is
None
:
no_section
_url
=
reverse
(
"courseware_chapter"
,
kwargs
=
kwargs
,
request
=
request
)
return
no_section_url
,
no_section
_url
chapter
_url
=
reverse
(
"courseware_chapter"
,
kwargs
=
kwargs
,
request
=
request
)
return
chapter_url
,
chapter
_url
kwargs
[
'section'
]
=
section
.
url_name
section_url
=
reverse
(
"courseware_section"
,
kwargs
=
kwargs
,
request
=
request
)
if
position
is
None
:
no_position_url
=
reverse
(
"courseware_section"
,
kwargs
=
kwargs
,
request
=
request
)
return
no_position_url
,
no_position_url
return
section_url
,
section_url
section_url
=
reverse
(
"courseware_section"
,
kwargs
=
kwargs
,
request
=
request
)
kwargs
[
'position'
]
=
position
unit_url
=
reverse
(
"courseware_position"
,
kwargs
=
kwargs
,
request
=
request
)
return
unit_url
,
section_url
...
...
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