make course about view methods render the about content as a module, so we get all the url rewriting goodness. Also, since we're now handling the url re-writing via the module get_html pipelines, we can remove the link rewriting inside the xmodules itself - which is good because there's a wierd bug in lxml.html rewriting

This commit is contained in:
Chris Dodge
2012-10-30 15:12:13 -04:00
parent ded19f761a
commit 743f2b56dd
7 changed files with 37 additions and 44 deletions

View File

@@ -259,6 +259,8 @@ 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)