Skip to content

Commit f325320

Browse files
authored
bump version to 3.1.0
pre-release 3.1.0 (#334)
2 parents 78af806 + f36b29a commit f325320

18 files changed

Lines changed: 249 additions & 300 deletions

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"name": "Python: All debug Options",
9898
"type": "python",
9999
"request": "launch",
100-
"pythonPath": "${command:python.interpreterPath}",
100+
"python": "${command:python.interpreterPath}",
101101
"program": "${file}",
102102
"module": "module.name",
103103
"env": {

i18n/isogeo_search_engine_en.ts

Lines changed: 81 additions & 77 deletions
Large diffs are not rendered by default.

i18n/isogeo_search_engine_fr.qm

27 Bytes
Binary file not shown.

i18n/isogeo_search_engine_fr.ts

Lines changed: 84 additions & 81 deletions
Large diffs are not rendered by default.

isogeo.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -347,19 +347,9 @@ def initGui(self):
347347
def onClosePlugin(self):
348348
"""Cleanup necessary items here when plugin dockwidget is closed."""
349349
# save base portal URL in qsettings
350-
logger.debug(
351-
"*=====* DEBUG URL --> Isogeo : portal base URL value before plugin closing = {}".format(
352-
self.form_mng.input_portal_url.text()
353-
)
354-
)
355350
qsettings.setValue(
356351
"isogeo/settings/portal_base_url", self.form_mng.input_portal_url.text()
357352
)
358-
logger.debug(
359-
"*=====* DEBUG URL --> Isogeo : 'isogeo/settings/portal_base_url' setting = {}".format(
360-
qsettings.value("isogeo/settings/portal_base_url")
361-
)
362-
)
363353
# save cache
364354
self.form_mng.results_mng.cache_mng.dumper()
365355
# disconnects
@@ -890,19 +880,9 @@ def run(self):
890880
self.form_mng.btn_credits.pressed.connect(self.credits_dialog.show)
891881

892882
# -- Settings tab - Isogeo Portal settings ------------------------
893-
logger.debug(
894-
"*=====* DEBUG URL --> Isogeo : 'isogeo/settings/portal_base_url' setting = {}".format(
895-
qsettings.value("isogeo/settings/portal_base_url")
896-
)
897-
)
898883
self.form_mng.input_portal_url.setText(
899884
qsettings.value("isogeo/settings/portal_base_url")
900885
)
901-
logger.debug(
902-
"*=====* DEBUG URL --> Isogeo : input_portal_url.text() = {}".format(
903-
self.form_mng.input_portal_url.text()
904-
)
905-
)
906886

907887
""" ------- EXECUTED AFTER PLUGIN IS LAUNCHED --------------------- """
908888
self.form_mng.setWindowTitle("Isogeo - {}".format(self.plg_version))

metadata.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ name=Isogeo
1111
qgisMinimumVersion=3.4
1212
qgisMaximumVersion=3.99
1313
description=Isogeo search engine within QGIS
14-
version=3.1.0-beta1
14+
version=3.1.0
1515
author=Isogeo
1616
email=projects+qgis@isogeo.com
1717

@@ -24,7 +24,7 @@ repository=https://github.com/isogeo/isogeo-plugin-qgis
2424
# Recommended items:
2525

2626
# Uncomment the following line and add your changelog:
27-
changelog=- 3.0.2 : better SSL errors handling<br>- 3.0.1 : better authentication management<br>- 3.0.0 : first stable version compatible with QGIS 3<br>- 2.0.0-alpha1: first version meant to be compatible with QGIS 3
27+
changelog=- <strong>3.1.0:</strong> see the <a href="https://github.com/isogeo/isogeo-plugin-qgis/milestone/10?closed=1">dedicated milestone</a><br>- <strong>3.0.2:</strong> better SSL errors handling<br>- <strong>3.0.1:</strong> better authentication management<br>- <strong>3.0.0:</strong> first stable version compatible with QGIS 3<br>- <strong>2.0.0-alpha1:</strong> first version meant to be compatible with QGIS 3
2828

2929
# Tags are comma separated with spaces allowed
3030
tags=REST API,catalog,search,explore,webservices,metadata,open data,INSPIRE

modules/api/auth.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ def manage_api_initialization(self):
158158

159159
# CREDENTIALS LOCATORS ----------------------------------------------------
160160
def credentials_check_qsettings(self):
161-
"""Retrieve Isogeo API credentials within QGIS QSettings.
162-
"""
161+
"""Retrieve Isogeo API credentials within QGIS QSettings."""
163162

164163
if "isogeo-plugin" in qsettings.childGroups():
165164
logger.warning(
@@ -286,8 +285,7 @@ def credentials_update(self, credentials_source: str = "QSettings"):
286285

287286
# AUTHENTICATION FORM -----------------------------------------------------
288287
def display_auth_form(self):
289-
"""Show authentication form with prefilled fields and connected widgets.
290-
"""
288+
"""Show authentication form with prefilled fields and connected widgets."""
291289
self.informer = UserInformer(message_bar=self.msgbar, trad=self.tr)
292290
self.auth_sig.connect(self.informer.authentication_slot)
293291
self.ui_auth_form.chb_isogeo_editor.stateChanged.connect(

modules/api/request.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727

2828
class ApiRequester(QObject):
2929
"""Basic class to manage direct interactions with Isogeo's API :
30-
- Authentication request for tokenl
31-
- Request about application's shares
32-
- Request about ressources
33-
- Building request URLs
34-
- Parsing API's answer tags
30+
- Authentication request for tokenl
31+
- Request about application's shares
32+
- Request about ressources
33+
- Building request URLs
34+
- Parsing API's answer tags
3535
"""
3636

3737
api_sig = pyqtSignal(str)
@@ -130,7 +130,7 @@ def create_request(self, request_type: str):
130130
return request
131131

132132
def send_request(self, request_type: str = "search"):
133-
""" Sends a request to the Isogeo's API using QNetworkRequestManager. That's the
133+
"""Sends a request to the Isogeo's API using QNetworkRequestManager. That's the
134134
handle_reply method which get the API's response. See below.
135135
136136
:param str request_type: type of request to send. Options:
@@ -210,6 +210,7 @@ def handle_reply(self, reply: QNetworkReply):
210210
try:
211211
parsed_content = json.loads(content)
212212
except ValueError as e:
213+
parsed_content = content
213214
if "No JSON object could be decoded" in str(e):
214215
logger.error("{} --> Internet connection failed".format(str(e)))
215216
self.api_sig.emit("internet_issue")
@@ -404,7 +405,7 @@ def build_request_url(self, params: dict):
404405
return url
405406

406407
def get_tags(self, tags: dict):
407-
""" This parse the tags contained in API_answer[tags] and class them so
408+
"""This parse the tags contained in API_answer[tags] and class them so
408409
they are more easy to handle in other function such as update_fields()
409410
410411
:param dict tags: a dict of tags as thez are return by the API

modules/layer/add_layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def build_wmts_url(
607607
try:
608608
wmts = WebMapTileService(wmts_url_getcap)
609609
except TypeError as e:
610-
logger.error("WMTS - OWSLib mixing str and unicode args", e)
610+
logger.error("WMTS - OWSLib mixing str and unicode args :{}".format(e))
611611
except ServiceException as e:
612612
logger.error(e)
613613
return 0, "WMTS - Bad operation: " + wmts_url_getcap, str(e)

modules/layer/limitations_checker.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ def __init__(self, layer_adder, tr):
3838

3939
def check(self, data_info: dict):
4040
logger.debug("Checking data access conditions and limitation")
41-
logger.debug("*=====* DEBUG LIM --> data_info : {}".format(data_info))
4241
limitations = data_info.get("limitations", None)
43-
logger.debug("*=====* DEBUG LIM --> limitations : {}".format(limitations))
4442
# if there are no limits, ok for adding the layer
4543
if len(limitations) == 0:
4644
logger.debug("No limitations found, let's add this layer to the canvas !")

0 commit comments

Comments
 (0)