Commit 830e08db by Julian Arni

Have definition_from_xml return (definition, children)

parent d44e7272
...@@ -172,9 +172,7 @@ class FolditDescriptor(XmlDescriptor, EditingDescriptor): ...@@ -172,9 +172,7 @@ class FolditDescriptor(XmlDescriptor, EditingDescriptor):
@classmethod @classmethod
def definition_from_xml(cls, xml_object, system): def definition_from_xml(cls, xml_object, system):
""" Get the xml_object's attributes. """ return ({}, [])
return {'metadata': xml_object.attrib}
def definition_to_xml(self): def definition_to_xml(self):
xml_object = etree.Element('foldit') xml_object = etree.Element('foldit')
......
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