Skip to content

Commit

Permalink
Merge pull request #142 from pka/optional_inputs
Browse files Browse the repository at this point in the history
Fix handling of optional inputs, Looks ok, thank you @pka
  • Loading branch information
jachym authored Jun 29, 2016
2 parents bb6ed6d + ba9bab7 commit b968b79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pywps/app/Service.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ def _parse_and_execute(self, process, wps_request, uuid):
raise MissingParameterValue(
inpt.identifier, inpt.identifier)
else:
data_inputs[inpt.identifier] = inpt.clone()
inputs = deque(maxlen=inpt.max_occurs)
inputs.append(inpt.clone())
data_inputs[inpt.identifier] = inputs

# Replace the dicts with the dict of Literal/Complex inputs
# set the input to the type defined in the process
Expand Down

0 comments on commit b968b79

Please sign in to comment.