added (temporary?) debugging statements

This commit is contained in:
ichuang
2012-05-27 20:12:06 -04:00
parent 1548293821
commit 4280c791a3
2 changed files with 5 additions and 0 deletions

View File

@@ -203,6 +203,9 @@ def course_file(user,coursename=None):
else:
tree_string = None
if settings.DEBUG:
print '[courseware.content_parser.course_file] filename=%s, cache_key=%s' % (filename,cache_key)
if not tree_string:
tree = course_xml_process(etree.XML(render_to_string(filename, options, namespace = 'course')))
tree_string = etree.tostring(tree)