[MapProxy] WSGI Filter working example
Erik Tiengo
etiengo at gmail.com
Sun Apr 18 21:52:22 PDT 2021
Thank you so much Matt! Your snippet works with Python 3.9 as well. It was
definitely my error: now with *application = <wsgi_filter>(app=application)
*works!
et
Il giorno dom 18 apr 2021 alle ore 19:19 Matt Walker <
walkermatt at longwayaround.org.uk> ha scritto:
> Hi Erik,
>
> I don't have time to test with Python 3 right now but here is an example
> from a few years ago which wraps MapProxy in order to set
> the mapproxy.decorate_img callback.
>
> https://gist.github.com/walkermatt/1cae669defce037511ada4e0ed01b3cd
>
> Kind regards,
>
> Matt.
>
> On Sun, 18 Apr 2021, 16:09 Erik Tiengo, <etiengo at gmail.com> wrote:
>
>> Hello to everybody,
>>
>> someone could share a simple example of customization by WSGI filter.
>> Documentation is a very clear entry point, but I am not able to see
>> __call__ method in action :-( I guess that GetCapabilities request is
>> enough to see __call__ in action, right? __init__ is it but no __call__ for
>> every request I make
>>
>> I am using Python 3.9.1, MapProxy 1.13.0 and gunicorn 20.1.0
>>
>> Thank in advance for support
>>
>> et
>>
>> --
>> *Erik Tiengo*
>> GIS Solution Architect
>> ------------------------------
>> mobile: *+39 348 1230364*
>> Skype: *erik.tiengo*
>> Hangouts: *etiengo at gmail.com <etiengo at gmail.com>*
>> _______________________________________________
>> MapProxy mailing list
>> MapProxy at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapproxy
>>
>
--
*Erik Tiengo*
GIS Solution Architect
------------------------------
mobile: *+39 348 1230364*
Skype: *erik.tiengo*
Hangouts: *etiengo at gmail.com <etiengo at gmail.com>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20210419/831ce4c0/attachment.html>
More information about the MapProxy
mailing list