Merge pull request #985 from cpennington/mixins-for-xml-hotfix

Add mixins to XModuleDescriptors as they are loaded during xml parsing
This commit is contained in:
Calen Pennington
2013-09-13 19:18:52 -07:00

View File

@@ -576,10 +576,10 @@ class XModuleDescriptor(XModuleFields, HTMLSnippet, ResourceTemplates, XBlock):
org and course are optional strings that will be used in the generated
module's url identifiers
"""
class_ = XModuleDescriptor.load_class(
class_ = system.mixologist.mix(XModuleDescriptor.load_class(
etree.fromstring(xml_data).tag,
default_class
)
))
# leave next line, commented out - useful for low-level debugging
# log.debug('[XModuleDescriptor.load_from_xml] tag=%s, class_=%s' % (
# etree.fromstring(xml_data).tag,class_))