gltn / stdm

STDM is a free and open source pro-poor land recordation system based on QGIS, PostgreSQL and PostGIS.
http://stdm.gltn.net/
GNU General Public License v2.0
30 stars 30 forks source link

Stdm syria - Replaced the function kobo_download() within support_doc_manager #479

Closed strabzounly closed 2 years ago

strabzounly commented 2 years ago

Replaced requests lib by QtNetworkRequest (replaced the function kobo_download() within support_doc_manager. Later will be added as class

gkahiu commented 2 years ago

Thanks @strabzounly. I think you should be using QgsNetworkAccessManager instead of the QNetworkAccessManager. The latter inherits from the former so the changes should be minimal. @pgathogo can comment further.

strabzounly commented 2 years ago

Thanks @strabzounly. I think you should be using QgsNetworkAccessManager instead of the QNetworkAccessManager. The latter inherits from the former so the changes should be minimal. @pgathogo can comment further.

@gkahiu @pgathogo Thank you very much! Altered the code, used "QgsNetworkAccessManager" instead of the "QNetworkAccessManager" & "QEventLoop" instead of "While loop"