From d9466219150e79adcc6da59465edb231624b57fb Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Tue, 14 Feb 2012 17:40:46 -0500 Subject: [PATCH] Fixed course check --- courseware/management/commands/check_course.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/courseware/management/commands/check_course.py b/courseware/management/commands/check_course.py index b020529ffb..4d0b9840ab 100644 --- a/courseware/management/commands/check_course.py +++ b/courseware/management/commands/check_course.py @@ -8,6 +8,7 @@ from django.contrib.auth.models import User from mitx.courseware.content_parser import course_file import mitx.courseware.module_render +import mitx.courseware.modules class Command(BaseCommand): help = "Does basic validity tests on course.xml." @@ -24,7 +25,7 @@ class Command(BaseCommand): check = False print "Confirming all modules render. Nothing should print during this step. " for module in course.xpath('//problem|//html|//video|//vertical|//sequential|/tab'): - module_class=mitx.courseware.module_render.modx_modules[module.tag] + module_class=mitx.courseware.modules.modx_modules[module.tag] # TODO: Abstract this out in render_module.py try: instance=module_class(etree.tostring(module),