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
4509dc03
Commit
4509dc03
authored
Jun 12, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pull and save pdf textbook information to/from the correct modulestore
parent
64adb62d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cms/djangoapps/contentstore/views/course.py
+3
-2
No files found.
cms/djangoapps/contentstore/views/course.py
View file @
4509dc03
...
@@ -24,7 +24,8 @@ from xmodule.contentstore.content import StaticContent
...
@@ -24,7 +24,8 @@ from xmodule.contentstore.content import StaticContent
from
contentstore.course_info_model
import
(
from
contentstore.course_info_model
import
(
get_course_updates
,
update_course_updates
,
delete_course_update
)
get_course_updates
,
update_course_updates
,
delete_course_update
)
from
contentstore.utils
import
(
from
contentstore.utils
import
(
get_lms_link_for_item
,
add_extra_panel_tab
,
remove_extra_panel_tab
)
get_lms_link_for_item
,
add_extra_panel_tab
,
remove_extra_panel_tab
,
get_modulestore
)
from
models.settings.course_details
import
(
from
models.settings.course_details
import
(
CourseDetails
,
CourseSettingsEncoder
)
CourseDetails
,
CourseSettingsEncoder
)
...
@@ -428,7 +429,7 @@ def textbook_index(request, org, course, name):
...
@@ -428,7 +429,7 @@ def textbook_index(request, org, course, name):
org, course, name: Attributes of the Location for the item to edit
org, course, name: Attributes of the Location for the item to edit
"""
"""
location
=
get_location_and_verify_access
(
request
,
org
,
course
,
name
)
location
=
get_location_and_verify_access
(
request
,
org
,
course
,
name
)
store
=
modulestore
(
)
store
=
get_modulestore
(
location
)
course_module
=
store
.
get_item
(
location
,
depth
=
3
)
course_module
=
store
.
get_item
(
location
,
depth
=
3
)
if
request
.
is_ajax
():
if
request
.
is_ajax
():
...
...
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