Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-27 Thread Nyall Dawson
On Thu, 28 Nov 2019 at 02:07, C Hamilton wrote: > > For some reason I cannot seem to get QgsBlockingNetworkRequest to work. Also > I think there is an error in the documentation where it says, "After > completion of a request, the reply content should be retrieved by calling >

Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-27 Thread C Hamilton
For some reason I cannot seem to get QgsBlockingNetworkRequest to work. Also I think there is an error in the documentation where it says, "After completion of a request, the reply content should be retrieved by calling getReplyContent()." It appears to me to be reply(). This is basically my

Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-27 Thread C Hamilton
Nyall, Thanks so much for this detailed explanation. Without it I probably would have taken the wrong direction and wasted a lot of time. QgsBlockingNetworkRequest is probably what I need so my development with this will assume user's have 3.6 or later. Calvin On Wed, Nov 27, 2019 at 12:35 AM

Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-26 Thread Nyall Dawson
On Wed, 27 Nov 2019 at 15:26, Denis Rouzaud wrote: > > Thanks Nyall for the precisions. > I wasn't aware of QgsBlockingNetworkRequest. > > So basically, if I don't require authcf, then starting from 3.6 there is no > reason to use my python nam, I should use both QgsNetworkContentFetcher and >

Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-26 Thread Nyall Dawson
On Wed, 27 Nov 2019 at 00:44, Denis Rouzaud wrote: > > Hi, > > Jumping late but we use the work from NAM Alessandro did in a couple of > locator filters. > https://github.com/opengisch/qgis-swiss-locator/blob/master/swiss_locator/core/network_access_manager.py > > I believe I have done very very

Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-26 Thread Nyall Dawson
On Wed, 27 Nov 2019 at 00:35, C Hamilton wrote: > > Thanks everyone. This gives me some good ideas. These are the possible > solutions: > > 1. Write a python implementation of QgsNetworkContentFetcher or > QgsBlockingNetworkRequest. With this I could look at the QGIS version and if > it is

Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-26 Thread C Hamilton
Thanks everyone. This gives me some good ideas. These are the possible solutions: 1. Write a python implementation of QgsNetworkContentFetcher or QgsBlockingNetworkRequest. With this I could look at the QGIS version and if it is 3.10 or greater import the core method; otherwise, import the python

Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-25 Thread Alessandro Pasotti
On Tue, Nov 26, 2019 at 8:22 AM Richard Duivenvoorde wrote: > On 26/11/2019 00.06, Nyall Dawson wrote: > > > There's not. But there's the ex-boundless "networkaccessmanager" > > implementation that supports authcfg, which you can find at > > >

Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-25 Thread Richard Duivenvoorde
On 26/11/2019 00.06, Nyall Dawson wrote: > There's not. But there's the ex-boundless "networkaccessmanager" > implementation that supports authcfg, which you can find at > https://github.com/north-road/qgis-redistricting-plugin/blob/master/redistrict/linz/networkaccessmanager.py > (and other

Re: [Qgis-user] [QGIS-Developer] Python Implementation of QgsNetworkContentFetcher

2019-11-25 Thread Nyall Dawson
On Tue, 26 Nov 2019 at 07:52, C Hamilton wrote: > > Is there a python implementation of QgsNetworkContentFetcher? I need authcfg > to be a part of it and it looks like that was added in QGIS 3.10. In one of > my plugins I would like to use it, but I need to support earlier versions of > QGIS