Commit 0aaf4817 by Calen Pennington

Turn on bulk operations for xml export

parent 52beec88
...@@ -37,6 +37,8 @@ def export_to_xml(modulestore, contentstore, course_key, root_dir, course_dir): ...@@ -37,6 +37,8 @@ def export_to_xml(modulestore, contentstore, course_key, root_dir, course_dir):
`course_dir`: The name of the directory inside `root_dir` to write the course content to `course_dir`: The name of the directory inside `root_dir` to write the course content to
""" """
with modulestore.bulk_operations(course_key):
course = modulestore.get_course(course_key, depth=None) # None means infinite course = modulestore.get_course(course_key, depth=None) # None means infinite
fsm = OSFS(root_dir) fsm = OSFS(root_dir)
export_fs = course.runtime.export_fs = fsm.makeopendir(course_dir) export_fs = course.runtime.export_fs = fsm.makeopendir(course_dir)
......
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