Commit 26651a1d by Chris Dodge

export_to_xml() really should be definition_to_xml() since we'll rely on the…

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.
parent 958597ac
...@@ -240,7 +240,7 @@ class VideoDescriptor(VideoFields, TabsEditingDescriptor, EmptyDataRawDescriptor ...@@ -240,7 +240,7 @@ class VideoDescriptor(VideoFields, TabsEditingDescriptor, EmptyDataRawDescriptor
video = cls(system, model_data) video = cls(system, model_data)
return video return video
def export_to_xml(self, resource_fs): def definition_to_xml(self, resource_fs):
""" """
Returns an xml string representing this module. Returns an xml string representing this module.
""" """
...@@ -277,7 +277,8 @@ class VideoDescriptor(VideoFields, TabsEditingDescriptor, EmptyDataRawDescriptor ...@@ -277,7 +277,8 @@ class VideoDescriptor(VideoFields, TabsEditingDescriptor, EmptyDataRawDescriptor
ele = etree.Element('track') ele = etree.Element('track')
ele.set('src', self.track) ele.set('src', self.track)
xml.append(ele) xml.append(ele)
return etree.tostring(xml, pretty_print=True) return xml
#return etree.tostring(xml, pretty_print=True)
@staticmethod @staticmethod
def _parse_youtube(data): def _parse_youtube(data):
......
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