Commit ba9a0341 by Chris Dodge

remove unneeded debugging traces

parent ee1098c0
...@@ -288,12 +288,9 @@ def edit_unit(request, location): ...@@ -288,12 +288,9 @@ def edit_unit(request, location):
# this will need to change to check permissions correctly so as # this will need to change to check permissions correctly so as
# to pick the correct parent subsection # to pick the correct parent subsection
logging.debug('looking for parent of {0}'.format(location))
containing_subsection_locs = modulestore().get_parent_locations(location) containing_subsection_locs = modulestore().get_parent_locations(location)
containing_subsection = modulestore().get_item(containing_subsection_locs[0]) containing_subsection = modulestore().get_item(containing_subsection_locs[0])
logging.debug('looking for parent of {0}'.format(containing_subsection.location))
containing_section_locs = modulestore().get_parent_locations(containing_subsection.location) containing_section_locs = modulestore().get_parent_locations(containing_subsection.location)
containing_section = modulestore().get_item(containing_section_locs[0]) containing_section = modulestore().get_item(containing_section_locs[0])
......
...@@ -50,7 +50,6 @@ class CachingDescriptorSystem(MakoDescriptorSystem): ...@@ -50,7 +50,6 @@ class CachingDescriptorSystem(MakoDescriptorSystem):
self.load_item, resources_fs, error_tracker, render_template) self.load_item, resources_fs, error_tracker, render_template)
self.modulestore = modulestore self.modulestore = modulestore
self.module_data = module_data self.module_data = module_data
self.default_class = default_class self.default_class = default_class
def load_item(self, location): def load_item(self, location):
......
...@@ -259,8 +259,6 @@ def _get_module(user, request, location, student_module_cache, course_id, positi ...@@ -259,8 +259,6 @@ def _get_module(user, request, location, student_module_cache, course_id, positi
module.metadata['data_dir'] if 'data_dir' in module.metadata else '', module.metadata['data_dir'] if 'data_dir' in module.metadata else '',
course_namespace = module.location._replace(category=None, name=None)) course_namespace = module.location._replace(category=None, name=None))
logging.debug('in get_module')
# Allow URLs of the form '/course/' refer to the root of multicourse directory # Allow URLs of the form '/course/' refer to the root of multicourse directory
# hierarchy of this course # hierarchy of this course
module.get_html = replace_course_urls(module.get_html, course_id) module.get_html = replace_course_urls(module.get_html, course_id)
......
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