Work-around for not finding XML for sections in section files. Note: Requires data push

This commit is contained in:
Piotr Mitros
2012-03-09 20:20:02 -05:00
parent f8e706399f
commit c8f261efc7
2 changed files with 25 additions and 8 deletions

View File

@@ -67,7 +67,7 @@ def modx_dispatch(request, module=None, dispatch=None, id=None):
ajax_url = '/modx/'+module+'/'+id+'/'
# Grab the XML corresponding to the request from course.xml
xml = content_parser.module_xml(content_parser.course_file(request.user), module, 'id', id)
xml = content_parser.module_xml(request.user, module, 'id', id)
# Create the module
instance=courseware.modules.get_module_class(module)(xml,