From 26651a1dd7e4d9267764586cba620282eae08c3d Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Wed, 14 Aug 2013 23:35:40 -0400 Subject: [PATCH] export_to_xml() really should be definition_to_xml() since we'll rely on the base method that is in xml_module.py to preserve the correct export filesystem hierarchy. --- common/lib/xmodule/xmodule/video_module.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/video_module.py b/common/lib/xmodule/xmodule/video_module.py index afa811b718..c8c0bf4225 100644 --- a/common/lib/xmodule/xmodule/video_module.py +++ b/common/lib/xmodule/xmodule/video_module.py @@ -240,7 +240,7 @@ class VideoDescriptor(VideoFields, TabsEditingDescriptor, EmptyDataRawDescriptor video = cls(system, model_data) return video - def export_to_xml(self, resource_fs): + def definition_to_xml(self, resource_fs): """ Returns an xml string representing this module. """ @@ -277,7 +277,8 @@ class VideoDescriptor(VideoFields, TabsEditingDescriptor, EmptyDataRawDescriptor ele = etree.Element('track') ele.set('src', self.track) xml.append(ele) - return etree.tostring(xml, pretty_print=True) + return xml + #return etree.tostring(xml, pretty_print=True) @staticmethod def _parse_youtube(data):