Commit 45f86b66 by cahrens

Delete unused file.

parent cc2d0697
from xblock.core import Integer, Float
class StringyFloat(Float):
"""
A model type that converts from string to floats when reading from json
"""
def from_json(self, value):
try:
return float(value)
except:
return None
......@@ -155,7 +155,6 @@ class XmlDescriptor(XModuleDescriptor):
Remove any attribute named in cls.metadata_attributes from the supplied
xml_object
"""
# TODO: change to use Fields definitions
for attr in cls.metadata_attributes:
if xml_object.get(attr) is not None:
del xml_object.attrib[attr]
......
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