avoid NotImplementedError for the time being

This commit is contained in:
Adrian Sampson 2014-01-26 21:43:29 -08:00
parent fbed9552ea
commit 0458d16e71

View file

@ -86,7 +86,11 @@ class DateType(types.Type):
time.localtime(value or 0))
def parse(self, string):
raise NotImplementedError() # FIXME
# FIXME Real date parsing.
try:
return float(string)
except ValueError:
return 0.0
class PathType(types.Type):