Commit 4280c791 by ichuang

added (temporary?) debugging statements

parent 15482938
......@@ -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)
......
......@@ -33,6 +33,8 @@ class I4xSystem(object):
self.filestore = OSFS(settings.DATA_DIR)
else:
self.filestore = filestore
if settings.DEBUG:
print "[courseware.module_render.I4xSystem] filestore path = %s" % filestore
self.render_function = render_function
self.exception404 = Http404
def __repr__(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment