Commit d8627a3e authored by Celine Noirot's avatar Celine Noirot
Browse files

fix spelling error

parent fe8b584a
......@@ -24,7 +24,7 @@ import copy as _copy
from workflows.types import *
class MiltipleParameters(object):
class MultipleParameters(object):
def __init__(self, types, required, choices, excludes, default, actions):
self.types = types
self.choices = choices
......@@ -33,7 +33,7 @@ class MiltipleParameters(object):
self.actions = actions
self.index = None
self.required = required
self.__name__ = "MiltipleParameters"
self.__name__ = "MultipleParameters"
def __call__(self, arg):
parts = arg.split("=")
......@@ -214,7 +214,7 @@ class Parameter(object):
else:
sub_param_excludes[sub_param.group] = [sub_param.flag]
if sub_param.required: sub_param_required.append(sub_param.flag)
self.type = MiltipleParameters(sub_param_hash, sub_param_required, sub_param_choices, sub_param_excludes, sub_param_default, sub_param_actions)
self.type = MultipleParameters(sub_param_hash, sub_param_required, sub_param_choices, sub_param_excludes, sub_param_default, sub_param_actions)
if self.action == "append":
self.action = MiltipleAppendAction
else:
......
......@@ -286,7 +286,7 @@ class Workflow(threading.Thread):
# if it's a boolean
elif param.type == types.BooleanType:
extended_args[param.name] = args[param.name] in [True, 1, 'true', '1', 't', 'y', 'yes']
elif param.type.__name__ == "MiltipleParameters":
elif param.type.__name__ == "MultipleParameters":
extended_args[param.name] = {}
for sub_param in param.sub_parameters:
# find the value
......@@ -299,7 +299,7 @@ class Workflow(threading.Thread):
extended_args[param.name] = args[param.name]
# otherwise use the default
else:
if param.type.__name__ == "MiltipleParameters":
if param.type.__name__ == "MultipleParameters":
extended_args[param.name] = {}
for sub_param in param.sub_parameters:
extended_args[param.name][sub_param.name] = sub_param.default
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment