remove unneeded debugging traces
This commit is contained in:
@@ -288,12 +288,9 @@ def edit_unit(request, location):
|
||||
# this will need to change to check permissions correctly so as
|
||||
# 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 = 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 = modulestore().get_item(containing_section_locs[0])
|
||||
|
||||
|
||||
@@ -50,7 +50,6 @@ class CachingDescriptorSystem(MakoDescriptorSystem):
|
||||
self.load_item, resources_fs, error_tracker, render_template)
|
||||
self.modulestore = modulestore
|
||||
self.module_data = module_data
|
||||
|
||||
self.default_class = default_class
|
||||
|
||||
def load_item(self, location):
|
||||
|
||||
@@ -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 '',
|
||||
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
|
||||
# hierarchy of this course
|
||||
module.get_html = replace_course_urls(module.get_html, course_id)
|
||||
|
||||
Reference in New Issue
Block a user