Skip to content

Commit 57254d2

Browse files
authored
bump version to 3.3.0
[3.3.0] releasing
2 parents 8bdfbc2 + 95f4880 commit 57254d2

2 files changed

Lines changed: 29 additions & 33 deletions

File tree

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.2.0
14+
version=3.3.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=- <strong>3.2.0:</strong> see the <a href="https://github.com/isogeo/isogeo-plugin-qgis/releases/tag/3.2.0">dedicated GitHub release</a><br>- <strong>3.1.1:</strong> see the <a href="https://github.com/isogeo/isogeo-plugin-qgis/releases/tag/3.1.1">dedicated GitHub release</a><br>- <strong>3.1.0:</strong> see the <a href="https://github.com/isogeo/isogeo-plugin-qgis/releases/tag/3.1.0">dedicated GitHub release</a><br>- <strong>3.0.2:</strong> better SSL errors handling<br>- <strong>3.0.1:</strong> better authentication management<br>
27+
changelog=- <strong>3.3.0:</strong> see the <a href="https://github.com/isogeo/isogeo-plugin-qgis/releases/tag/3.3.0">dedicated GitHub release</a><br>- <strong>3.2.0:</strong> see the <a href="https://github.com/isogeo/isogeo-plugin-qgis/releases/tag/3.2.0">dedicated GitHub release</a><br>- <strong>3.1.1:</strong> see the <a href="https://github.com/isogeo/isogeo-plugin-qgis/releases/tag/3.1.1">dedicated GitHub release</a><br>- <strong>3.1.0:</strong> see the <a href="https://github.com/isogeo/isogeo-plugin-qgis/releases/tag/3.1.0">dedicated GitHub release</a><br>- <strong>3.0.2:</strong> better SSL errors handling<br>
2828

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

modules/layer/database.py

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ def __init__(self, tr):
137137
self.fetch_qsettings_connections(dbms="PostgreSQL", connections_kind="invalid")
138138
self.fetch_qsettings_connections(dbms="Oracle", connections_kind="invalid")
139139

140-
logger.debug("*=====* {}".format(self.dbms_specifics_infos))
141140
# retrieve informations about registered database connections from QSettings
142141
self.build_connection_dict(dbms="PostgreSQL")
143142
self.build_connection_dict(dbms="Oracle")
@@ -258,10 +257,8 @@ def config_file_parser(
258257
# Then check if a section exists into configuration file content corresponding to connection_service value
259258
available_connection_services = config.sections()
260259
if connection_service not in available_connection_services:
261-
error_msg = (
262-
"'{}' entry is missing into '{}' configuration file content.".format(
263-
connection_service, file_path
264-
)
260+
error_msg = "'{}' entry is missing into '{}' configuration file content.".format(
261+
connection_service, file_path
265262
)
266263
self.pg_configfile_path = 0
267264
return 0, error_msg
@@ -393,7 +390,6 @@ def build_connection_uri(
393390

394391
uri = QgsDataSourceUri()
395392
if service == "":
396-
logger.debug("*=====* tradi connection")
397393
uri.setConnection(
398394
aHost=host,
399395
aPort=port,
@@ -402,7 +398,6 @@ def build_connection_uri(
402398
aPassword=password,
403399
)
404400
else:
405-
logger.debug("*=====* service connection")
406401
uri.setConnection(
407402
aService=service,
408403
aDatabase=database,
@@ -520,7 +515,11 @@ def build_connection_dict(self, dbms: str, skip_invalid: bool = True):
520515
li_connections = []
521516
li_db_names = []
522517
for k in sorted(qsettings.allKeys()):
523-
if k.startswith(dbms_prefix) and k.endswith("/database") and len(k.split("/")) == 4:
518+
if (
519+
k.startswith(dbms_prefix)
520+
and k.endswith("/database")
521+
and len(k.split("/")) == 4
522+
):
524523
connection_name = k.split("/")[2]
525524

526525
password_saved = qsettings.value(
@@ -559,9 +558,7 @@ def build_connection_dict(self, dbms: str, skip_invalid: bool = True):
559558

560559
if (
561560
connection_name
562-
in self.dbms_specifics_infos.get(dbms).get(
563-
"invalid_connections"
564-
)
561+
in self.dbms_specifics_infos.get(dbms).get("invalid_connections")
565562
and skip_invalid
566563
):
567564
pass
@@ -570,30 +567,17 @@ def build_connection_dict(self, dbms: str, skip_invalid: bool = True):
570567
if not conn:
571568
connection_dict["uri"] = 0
572569
connection_dict["tables"] = 0
573-
self.dbms_specifics_infos[dbms][
574-
"invalid_connections"
575-
].append(connection_name)
570+
self.dbms_specifics_infos[dbms]["invalid_connections"].append(
571+
connection_name
572+
)
576573
logger.info(
577-
"'{}' connection saved as invalid".format(
578-
connection_name
579-
)
574+
"'{}' connection saved as invalid".format(connection_name)
580575
)
581576
continue
582577
else:
583578
connection_dict["uri"] = conn[0]
584579
connection_dict["tables"] = conn[1]
585580

586-
logger.debug(
587-
"*=====* {}".format(connection_dict.get("connection"))
588-
)
589-
logger.debug(
590-
"*=====* {}".format(
591-
self.dbms_specifics_infos.get(dbms).get(
592-
"prefered_connections"
593-
)
594-
)
595-
)
596-
597581
if connection_dict.get(
598582
"connection"
599583
) in self.dbms_specifics_infos.get(dbms).get(
@@ -639,7 +623,10 @@ def fill_db_config_tbl(self, dbms):
639623

640624
# Clean and initiate the tab
641625
self.tbl.clear()
642-
li_header_labels = [self.tr("Database", context=__class__.__name__,), self.tr("Connection", context=__class__.__name__,)]
626+
li_header_labels = [
627+
self.tr("Database", context=__class__.__name__,),
628+
self.tr("Connection", context=__class__.__name__,),
629+
]
643630
self.tbl.setHorizontalHeaderLabels(li_header_labels)
644631
self.tbl.setRowCount(0)
645632

@@ -705,9 +692,18 @@ def open_db_config_dialog(self, dbms: str):
705692
windowIcon = dbms_specifics_resources.get(dbms).get("windowIcon")
706693

707694
self.db_config_dialog.setWindowIcon(windowIcon)
708-
windowTitle = label + self.tr(" - Configuration of database connections", context=__class__.__name__)
695+
windowTitle = label + self.tr(
696+
" - Configuration of database connections", context=__class__.__name__
697+
)
709698
self.db_config_dialog.setWindowTitle(windowTitle)
710-
dialog_label = self.tr("Choose the embed connection to be used to access to each ", context=__class__.__name__) + label + self.tr(" database", context=__class__.__name__)
699+
dialog_label = (
700+
self.tr(
701+
"Choose the embed connection to be used to access to each ",
702+
context=__class__.__name__,
703+
)
704+
+ label
705+
+ self.tr(" database", context=__class__.__name__)
706+
)
711707
self.db_config_dialog.label.setText(dialog_label)
712708
self.fill_db_config_tbl(dbms)
713709
self.db_config_dialog.open()

0 commit comments

Comments
 (0)