cleave xlint entry point in xml_importer.py to be separate from the import method
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
from xmodule.modulestore.xml_importer import import_from_xml
|
||||
from xmodule.modulestore.xml_importer import perform_xlint
|
||||
from xmodule.modulestore.django import modulestore
|
||||
from xmodule.contentstore.django import contentstore
|
||||
|
||||
@@ -25,4 +25,4 @@ class Command(BaseCommand):
|
||||
print "Importing. Data_dir={data}, course_dirs={courses}".format(
|
||||
data=data_dir,
|
||||
courses=course_dirs)
|
||||
import_from_xml(None, data_dir, course_dirs, load_error_modules=False, validate_only=True)
|
||||
perform_xlint(data_dir, course_dirs, load_error_modules=False)
|
||||
|
||||
Reference in New Issue
Block a user