from __future__ import absolute_import
VARIABLETYPE = ["None", "Static", "Session", "Alarm"]
opt_parser = re.compile(r'(\w+)\s*(?:=\s*"([^"]+)"\s*)?')
def __init__(self, *args, **kwargs):
dict.__init__(self, *args, **kwargs)
variable_type_selection = 0,
options = re.findall(opt_parser,opts)
for key,value in options:
elif key in VARIABLETYPE[1:]:
res.variable_type_selection = VARIABLETYPE.index(key)
if key in ["precision", "min","max"]:
raise Exception("Unknown key in options")