Commit 97f93498 authored by matjaz's avatar matjaz

Merge branch 'dev' of workflow.ijs.si:mothra into dev

parents 2ef49758 be70bde6
......@@ -50,13 +50,19 @@ class WebService:
method['name']=op['name']
method['inputs']=[]
method['outputs']=[]
input_dict = op['input'].values()[0]
try:
input_dict = op['input'].values()[0]
except:
input_dict = []
for i in input_dict:
input = {}
input['name']=i
input['type']=input_dict[i]
method['inputs'].append(input)
output_dict = op['output'].values()[0]
try:
output_dict = op['output'].values()[0]
except:
output_dict = [[]]
if type(output_dict)==type([]):
output_dict = output_dict[0]
for o in output_dict:
......
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