bird-house/pyramid-phoenix

Phoenix "restart process" fails for process with date inputs

Closed this issue · 1 comments

Use for example the esgsearch process of malleefowl, and restart it after it has finished:

 File "/opt/birdhouse/src/pyramid-phoenix/phoenix/processes/views/execute.py", line 202, in view
    form=form.render(self.appstruct()))
  File "/opt/anaconda/envs/pyramid-phoenix/lib/python2.7/site-packages/deform/field.py", line 548, in render
    self.set_appstruct(appstruct)
  File "/opt/anaconda/envs/pyramid-phoenix/lib/python2.7/site-packages/deform/field.py", line 721, in set_appstruct
    cstruct = self.schema.serialize(appstruct)
  File "/opt/anaconda/envs/pyramid-phoenix/lib/python2.7/site-packages/colander/__init__.py", line 2089, in serialize
    cstruct = self.typ.serialize(self, appstruct)
  File "/opt/anaconda/envs/pyramid-phoenix/lib/python2.7/site-packages/colander/__init__.py", line 732, in serialize
    return self._impl(node, appstruct, callback)
  File "/opt/anaconda/envs/pyramid-phoenix/lib/python2.7/site-packages/colander/__init__.py", line 721, in _impl
    raise error
Invalid: {'end': u'"2001-12-31 00:00:00" is not a datetime object',
 'start': u'"2000-01-01 00:00:00" is not a datetime object'}

fixed by PR #182.