Commit 4509dc03 by David Baumgold

Pull and save pdf textbook information to/from the correct modulestore

parent 64adb62d
...@@ -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():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment