cleave xlint entry point in xml_importer.py to be separate from the import method

This commit is contained in:
Chris Dodge
2012-11-26 11:05:57 -05:00
parent d21095367a
commit fff3782884
2 changed files with 13 additions and 8 deletions

View File

@@ -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)