Delete unused file.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user