oqtopus 0.1.20__py3-none-any.whl → 0.1.21__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,12 +27,20 @@ class ProjectWidget(QWidget, DIALOG_UI):
27
27
 
28
28
  def setModulePackage(self, module_package: ModulePackage):
29
29
  self.__current_module_package = module_package
30
- self.__packagePrepareGetProjectFilename()
30
+ self.__updateProjectFilename()
31
31
 
32
32
  def setService(self, service):
33
33
  self.__current_service = service
34
+ self.__updateProjectFilename()
35
+
36
+ def __updateProjectFilename(self):
37
+
38
+ if self.__current_module_package is None:
39
+ self.project_info_label.setText(self.tr("No module package selected."))
40
+ QtUtils.setForegroundColor(self.project_info_label, PluginUtils.COLOR_WARNING)
41
+ QtUtils.setFontItalic(self.project_info_label, True)
42
+ return
34
43
 
35
- def __packagePrepareGetProjectFilename(self):
36
44
  asset_project = self.__current_module_package.asset_project
37
45
  if asset_project is None:
38
46
  self.project_info_label.setText(
@@ -73,9 +81,14 @@ class ProjectWidget(QWidget, DIALOG_UI):
73
81
 
74
82
  QtUtils.resetForegroundColor(self.project_info_label)
75
83
  QtUtils.setFontItalic(self.project_info_label, False)
76
- self.project_info_label.setText(
77
- f"<a href='file://{asset_project.package_dir}'>{asset_project.package_dir}</a>",
78
- )
84
+ if self.__current_service:
85
+ self.project_info_label.setText(
86
+ f"Project will use PG Service '{self.__current_service}' for database connection"
87
+ )
88
+ else:
89
+ self.project_info_label.setText(
90
+ "Project will use the default service. Please set a service in the database connection tab if you need a specific one."
91
+ )
79
92
 
80
93
  def __projectInstallClicked(self):
81
94
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oqtopus
3
- Version: 0.1.20
3
+ Version: 0.1.21
4
4
  Summary: A QGIS module manager
5
5
  Author-email: Damiano Lombardi <damiano@opengis.ch>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -346,9 +346,9 @@ License: GNU GENERAL PUBLIC LICENSE
346
346
  Requires-Python: >=3.8
347
347
  Description-Content-Type: text/markdown
348
348
  License-File: LICENSE
349
- Requires-Dist: pyyaml
350
- Requires-Dist: pgserviceparser<3.0.0,>=2.3.0
351
- Requires-Dist: pum<2.0.0,>=1.1.2
349
+ Requires-Dist: pgserviceparser<3.0.0,>=2.4.0
350
+ Requires-Dist: pum<2.0.0,>=1.1.13
351
+ Requires-Dist: PyYAML
352
352
  Requires-Dist: pydantic>=2.0
353
353
  Requires-Dist: psycopg<4.0.0,>=3.1.0
354
354
  Requires-Dist: requests<3.0.0,>=2.31.0
@@ -17,7 +17,7 @@ oqtopus/gui/module_selection_widget.py,sha256=57M9sM_VhD5lAfxqOxEPWUHiB2Ty6EQQkR
17
17
  oqtopus/gui/module_widget.py,sha256=WEE0paMIbRDfJ2KvIByZtHK4H1TULXLBFb1c4ydQttg,8443
18
18
  oqtopus/gui/parameters_groupbox.py,sha256=ZXoIbTDrpoe_SfxyYr7mNbQOi0vHAJSW8cPIXzGKdmE,2938
19
19
  oqtopus/gui/plugin_widget.py,sha256=8av8KI3p8gnXOlSssB5-dFVvq4vaLfqGjY9NVSNiBb0,5757
20
- oqtopus/gui/project_widget.py,sha256=T34MyHzHgKw1Dl6V67MKPneSd9DDgrWhuhj7mrcvjSg,6696
20
+ oqtopus/gui/project_widget.py,sha256=FhWvMBtQ6kw7NJ4pdCzNs48wMrA5ihjvcbplE4RMWbE,7281
21
21
  oqtopus/gui/settings_dialog.py,sha256=wgwVCuAIBh9iLrs9y5HfE99LrTV0rEYbL3frMBlW0cQ,1547
22
22
  oqtopus/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  oqtopus/ui/about_dialog.ui,sha256=2oa5u3LIvN3prHyELUG-bwDuEHlBn9-uuA4CwYsEARo,6236
@@ -36,10 +36,10 @@ oqtopus/utils/plugin_utils.py,sha256=v-Oxu2zs8tQWzEdHnwEl1mseapyvpPS-lHimJNK2zHY
36
36
  oqtopus/utils/qt_utils.py,sha256=HPe9tOQQH9R9xZp4rGphVhSJO7220q368xmreDu5-6g,3243
37
37
  oqtopus/utils/tmmtlogging.py,sha256=BSAPrhQGCuH2boMG4bP8QFyLfoss1uR4pO_pXjTA1eQ,1733
38
38
  oqtopus/utils/translation.py,sha256=p1d5N6CYIf94fGYdPQnJamdum9MVBlPkJ24c557rqdg,2647
39
- oqtopus-0.1.20.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
39
+ oqtopus-0.1.21.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
40
40
  tests/__init__.py,sha256=z5CxS92efenLcDm64Sifx26EjZBCWPO4oVvaEEHJJ6w,444
41
41
  tests/test_plugin_load.py,sha256=HuVLdrsn2PSjKIrvcLj0EH7vNE8-0jBMmHZHihsqB3Q,517
42
- oqtopus-0.1.20.dist-info/METADATA,sha256=L0mPS1xldApE8aF-eS68a2ArcpzYiJfFDQP5NCL_1W4,21475
43
- oqtopus-0.1.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
44
- oqtopus-0.1.20.dist-info/top_level.txt,sha256=i4DHi21kcGIzrF8DlgsKj-UCENHg_NebTRac7cwt32A,14
45
- oqtopus-0.1.20.dist-info/RECORD,,
42
+ oqtopus-0.1.21.dist-info/METADATA,sha256=2k-otTBmgsUQ8XaKBnboulfU7IXr706MxhCtHVBLs9c,21476
43
+ oqtopus-0.1.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
44
+ oqtopus-0.1.21.dist-info/top_level.txt,sha256=i4DHi21kcGIzrF8DlgsKj-UCENHg_NebTRac7cwt32A,14
45
+ oqtopus-0.1.21.dist-info/RECORD,,