Skip to content

Commit

Permalink
Bugfix: Async-WPS: wrong pickling of the ResponseDocument object.
Browse files Browse the repository at this point in the history
  • Loading branch information
pacesm committed Mar 6, 2017
1 parent 24aa42c commit 17f307f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eoxserver/services/ows/wps/parameters/response_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ def __init__(self, lineage=False, status=False, store_response=False):
self.status = status
self.store_response = store_response

def __reduce__(self): # NOTE: needed for correct async-WPS request pickling
return (
self.__class__, (self.lineage, self.status, self.store_response),
None, None, self.iteritems()
)

def __str__(self):
return (
"ResponseDocument(lineage=%s, status=%s, store_response=%s)[%s]" %
Expand Down

0 comments on commit 17f307f

Please sign in to comment.