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 ...@@ -24,7 +24,7 @@ import copy as _copy
from workflows.types import * from workflows.types import *
class MiltipleParameters(object): class MultipleParameters(object):
def __init__(self, types, required, choices, excludes, default, actions): def __init__(self, types, required, choices, excludes, default, actions):
self.types = types self.types = types
self.choices = choices self.choices = choices
...@@ -33,7 +33,7 @@ class MiltipleParameters(object): ...@@ -33,7 +33,7 @@ class MiltipleParameters(object):
self.actions = actions self.actions = actions
self.index = None self.index = None
self.required = required self.required = required
self.__name__ = "MiltipleParameters" self.__name__ = "MultipleParameters"
def __call__(self, arg): def __call__(self, arg):
parts = arg.split("=") parts = arg.split("=")
...@@ -214,7 +214,7 @@ class Parameter(object): ...@@ -214,7 +214,7 @@ class Parameter(object):
else: else:
sub_param_excludes[sub_param.group] = [sub_param.flag] sub_param_excludes[sub_param.group] = [sub_param.flag]
if sub_param.required: sub_param_required.append(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": if self.action == "append":
self.action = MiltipleAppendAction self.action = MiltipleAppendAction
else: else:
......
...@@ -286,7 +286,7 @@ class Workflow(threading.Thread): ...@@ -286,7 +286,7 @@ class Workflow(threading.Thread):
# if it's a boolean # if it's a boolean
elif param.type == types.BooleanType: elif param.type == types.BooleanType:
extended_args[param.name] = args[param.name] in [True, 1, 'true', '1', 't', 'y', 'yes'] 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] = {} extended_args[param.name] = {}
for sub_param in param.sub_parameters: for sub_param in param.sub_parameters:
# find the value # find the value
...@@ -299,7 +299,7 @@ class Workflow(threading.Thread): ...@@ -299,7 +299,7 @@ class Workflow(threading.Thread):
extended_args[param.name] = args[param.name] extended_args[param.name] = args[param.name]
# otherwise use the default # otherwise use the default
else: else:
if param.type.__name__ == "MiltipleParameters": if param.type.__name__ == "MultipleParameters":
extended_args[param.name] = {} extended_args[param.name] = {}
for sub_param in param.sub_parameters: for sub_param in param.sub_parameters:
extended_args[param.name][sub_param.name] = sub_param.default extended_args[param.name][sub_param.name] = sub_param.default
......
Supports Markdown
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