[Pywps-dev] using collectons.deque for reuquest.inputs

Jachym Cepicky jachym.cepicky at gmail.com
Fri Jul 24 09:49:03 PDT 2015


I've fixed 3 processes already (using them in integration tests) - in my
branch, will make pull request soon, ok?

J

pá 24. 7. 2015 v 9:31 odesílatel Luís de Sousa <luis.a.de.sousa at gmail.com>
napsal:

> Fine for me. Now we must update the processes in the demo.
>
> Luís
>
> On 23 July 2015 at 09:18, Jachym Cepicky <jachym.cepicky at gmail.com> wrote:
> > Hi
> >
> > as we are all aware, Inputs can indicate, that there be *more of them
> with
> > same indentificator* (maxOccurs parametr)
> >
> > In PyWPS 3, support for multiple inputs was only simple, for PyWPS-4,
> there
> > was non - until
> >
> https://github.com/jachym/pywps-4/commit/52dc170242fbad625fdf1339850228c7d4e449c5
> > (now)
> >
> > I've introduced collection.deque objects (which acts like and list) [1]
> >
> > One side effect: in the process, you have to count with the fact,
> > wpsrequest.inputs[identifier] can have more then one inputs -> to access
> the
> > first one, you need to call (e.g.)
> >
> > wpsrequest.inputs[identifier][0].file
> >
> > PyWPS can can now handle multiple separate data inputs with different
> > mimetypes etc..
> >
> >
> > I hope, everybody is fine with the change
> >
> > J
> >
> > [1] https://docs.python.org/3/library/collections.html#collections.deque
> >
> > _______________________________________________
> > pywps-dev mailing list
> > pywps-dev at lists.osgeo.org
> > http://lists.osgeo.org/cgi-bin/mailman/listinfo/pywps-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pywps-dev/attachments/20150724/95bf5ecb/attachment.html>


More information about the pywps-dev mailing list