Have definition_from_xml return (definition, children)

This commit is contained in:
Julian Arni
2013-03-12 14:34:34 -04:00
parent d44e7272d2
commit 830e08db1c

View File

@@ -172,10 +172,8 @@ class FolditDescriptor(XmlDescriptor, EditingDescriptor):
@classmethod
def definition_from_xml(cls, xml_object, system):
""" Get the xml_object's attributes. """
return {'metadata': xml_object.attrib}
return ({}, [])
def definition_to_xml(self):
xml_object = etree.Element('foldit')
return xml_object
return xml_object