From 373b7a8291d360c3ac43d534d09f0b0df157c2b6 Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Sun, 5 Feb 2012 23:49:03 -0500 Subject: [PATCH] Slightly more comprehensive check --- courseware/management/commands/check_course.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/courseware/management/commands/check_course.py b/courseware/management/commands/check_course.py index e335b13bb8..7ca8ef8242 100644 --- a/courseware/management/commands/check_course.py +++ b/courseware/management/commands/check_course.py @@ -23,7 +23,7 @@ class Command(BaseCommand): print "==============> Invalid (non-alphanumeric) filename", filename check = False print "Confirming all modules render. Nothing should print during this step. " - for module in course.xpath('//problem|//html|//video'): + for module in course.xpath('//problem|//html|//video|//vertical|//sequential|/tab'): module_class=mitx.courseware.module_render.modx_modules[module.tag] # TODO: Abstract this out in render_module.py try: @@ -44,6 +44,9 @@ class Command(BaseCommand): etree.parse(sections_dir+'/'+f) else: print "Skipping check of include files -- no section includes dir ("+sections_dir+")" + # TODO: print "Checking course properly annotated with preprocess.py" + + if check: print 'Courseware passes all checks!' else: