Commit c2224871 authored by Janez K's avatar Janez K

popravki pri webservice importu

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