Commit d44e7272 by John Hess

readding Julian Arni's update to definition

parent a39d607a
......@@ -170,4 +170,12 @@ class FolditDescriptor(XmlDescriptor, EditingDescriptor):
# so always need to actually check.
always_recalculate_grades = True
metadata_attributes = XmlDescriptor.metadata_attributes + ('required_level', 'required_sublevel')
@classmethod
def definition_from_xml(cls, xml_object, system):
""" Get the xml_object's attributes. """
return {'metadata': xml_object.attrib}
def definition_to_xml(self):
xml_object = etree.Element('foldit')
return xml_object
\ No newline at end of file
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