Commit 707551b0 by Victor Shnayder

local variable naming tweak

parent 0edc40de
...@@ -70,18 +70,19 @@ class ImportSystem(XMLParsingSystem, MakoDescriptorSystem): ...@@ -70,18 +70,19 @@ class ImportSystem(XMLParsingSystem, MakoDescriptorSystem):
# log.debug('-> slug=%s' % slug) # log.debug('-> slug=%s' % slug)
xml_data.set('url_name', slug) xml_data.set('url_name', slug)
module = XModuleDescriptor.load_from_xml( descriptor = XModuleDescriptor.load_from_xml(
etree.tostring(xml_data), self, org, etree.tostring(xml_data), self, org,
course, xmlstore.default_class) course, xmlstore.default_class)
#log.debug('==> importing module location %s' % repr(module.location)) #log.debug('==> importing descriptor location %s' %
module.metadata['data_dir'] = course_dir # repr(descriptor.location))
descriptor.metadata['data_dir'] = course_dir
xmlstore.modules[module.location] = module xmlstore.modules[descriptor.location] = descriptor
if xmlstore.eager: if xmlstore.eager:
module.get_children() descriptor.get_children()
return module return descriptor
render_template = lambda: '' render_template = lambda: ''
load_item = xmlstore.get_item load_item = xmlstore.get_item
......
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