Delete unused file.

This commit is contained in:
cahrens
2013-04-24 14:46:35 -04:00
parent cc2d06975e
commit 45f86b662a
2 changed files with 0 additions and 15 deletions

View File

@@ -1,14 +0,0 @@
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

View File

@@ -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]