Commit 08b8438d by ichuang

add extra modulestore() argument to export to make it export drafts also

parent 84c38b4e
...@@ -40,7 +40,7 @@ class Command(BaseCommand): ...@@ -40,7 +40,7 @@ class Command(BaseCommand):
try: try:
location = CourseDescriptor.id_to_location(course_id) location = CourseDescriptor.id_to_location(course_id)
course_dir = course_id.replace('/','...') course_dir = course_id.replace('/','...')
export_to_xml(ms, cs, location, root_dir, course_dir) export_to_xml(ms, cs, location, root_dir, course_dir, modulestore())
except Exception as err: except Exception as err:
print "="*30 + "> Oops, failed to export %s" % course_id print "="*30 + "> Oops, failed to export %s" % course_id
print "Error:" print "Error:"
......
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