Added FloatType as a possible option type
authorDmitriy Morozov <dmitriy@mrzv.org>
Thu, 25 Feb 2010 10:13:55 -0800
changeset 104 307ed799be32
parent 103 131bf0678cf7
child 105 1ce5c137b3e5
Added FloatType as a possible option type
opster.py
--- a/opster.py	Fri Feb 19 16:54:13 2010 -0800
+++ b/opster.py	Thu Feb 25 10:13:55 2010 -0800
@@ -323,6 +323,8 @@
             state[name] = defmap[name](val)
         elif t is types.IntType:
             state[name] = int(val)
+        elif t is types.FloatType:
+            state[name] = float(val)
         elif t is types.StringType:
             state[name] = val
         elif t is types.ListType: