oqtopus 0.1.21__tar.gz → 0.1.22__tar.gz

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.
Files changed (51) hide show
  1. {oqtopus-0.1.21 → oqtopus-0.1.22}/PKG-INFO +1 -1
  2. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/gui/main_dialog.py +4 -2
  3. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/utils/plugin_utils.py +5 -2
  4. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus.egg-info/PKG-INFO +1 -1
  5. {oqtopus-0.1.21 → oqtopus-0.1.22}/LICENSE +0 -0
  6. {oqtopus-0.1.21 → oqtopus-0.1.22}/README.md +0 -0
  7. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/__init__.py +0 -0
  8. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/core/module.py +0 -0
  9. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/core/module_asset.py +0 -0
  10. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/core/module_package.py +0 -0
  11. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/core/modules_config.py +0 -0
  12. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/core/package_prepare_task.py +0 -0
  13. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/gui/__init__.py +0 -0
  14. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/gui/about_dialog.py +0 -0
  15. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/gui/database_connection_widget.py +0 -0
  16. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/gui/database_create_dialog.py +0 -0
  17. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/gui/database_duplicate_dialog.py +0 -0
  18. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/gui/logs_widget.py +0 -0
  19. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/gui/module_selection_widget.py +0 -0
  20. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/gui/module_widget.py +0 -0
  21. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/gui/parameters_groupbox.py +0 -0
  22. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/gui/plugin_widget.py +0 -0
  23. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/gui/project_widget.py +0 -0
  24. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/gui/settings_dialog.py +0 -0
  25. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/oqtopus.py +0 -0
  26. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/oqtopus_plugin.py +0 -0
  27. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/ui/__init__.py +0 -0
  28. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/ui/about_dialog.ui +0 -0
  29. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/ui/database_connection_widget.ui +0 -0
  30. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/ui/database_create_dialog.ui +0 -0
  31. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/ui/database_duplicate_dialog.ui +0 -0
  32. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/ui/logs_widget.ui +0 -0
  33. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/ui/main_dialog.ui +0 -0
  34. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/ui/module_selection_widget.ui +0 -0
  35. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/ui/module_widget.ui +0 -0
  36. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/ui/plugin_widget.ui +0 -0
  37. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/ui/project_widget.ui +0 -0
  38. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/ui/settings_dialog.ui +0 -0
  39. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/utils/__init__.py +0 -0
  40. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/utils/qt_utils.py +0 -0
  41. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/utils/tmmtlogging.py +0 -0
  42. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus/utils/translation.py +0 -0
  43. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus.egg-info/SOURCES.txt +0 -0
  44. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus.egg-info/dependency_links.txt +0 -0
  45. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus.egg-info/requires.txt +0 -0
  46. {oqtopus-0.1.21 → oqtopus-0.1.22}/oqtopus.egg-info/top_level.txt +0 -0
  47. {oqtopus-0.1.21 → oqtopus-0.1.22}/pyproject.toml +0 -0
  48. {oqtopus-0.1.21 → oqtopus-0.1.22}/requirements.txt +0 -0
  49. {oqtopus-0.1.21 → oqtopus-0.1.22}/setup.cfg +0 -0
  50. {oqtopus-0.1.21 → oqtopus-0.1.22}/tests/__init__.py +0 -0
  51. {oqtopus-0.1.21 → oqtopus-0.1.22}/tests/test_plugin_load.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oqtopus
3
- Version: 0.1.21
3
+ Version: 0.1.22
4
4
  Summary: A QGIS module manager
5
5
  Author-email: Damiano Lombardi <damiano@opengis.ch>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -53,10 +53,12 @@ DIALOG_UI = PluginUtils.get_ui_class("main_dialog.ui")
53
53
 
54
54
  class MainDialog(QDialog, DIALOG_UI):
55
55
 
56
- def __init__(self, modules_config_path, parent=None):
56
+ def __init__(self, modules_config_path, about_dialog_cls=None, parent=None):
57
57
  QDialog.__init__(self, parent)
58
58
  self.setupUi(self)
59
59
 
60
+ self.__about_dialog_cls = about_dialog_cls or AboutDialog
61
+
60
62
  self.buttonBox.rejected.connect(self.__closeDialog)
61
63
  self.buttonBox.helpRequested.connect(self.__helpRequested)
62
64
 
@@ -136,7 +138,7 @@ class MainDialog(QDialog, DIALOG_UI):
136
138
  dlg.exec()
137
139
 
138
140
  def __show_about_dialog(self):
139
- dialog = AboutDialog(self)
141
+ dialog = self.__about_dialog_cls(self)
140
142
  dialog.exec()
141
143
 
142
144
  def __moduleSelection_loadingStarted(self):
@@ -95,8 +95,11 @@ class PluginUtils:
95
95
  return ini_text.value("version")
96
96
 
97
97
  @staticmethod
98
- def init_logger():
99
- PluginUtils.logsDirectory = f"{PluginUtils.plugin_root_path()}/logs"
98
+ def init_logger(logs_directory=None):
99
+ if logs_directory is not None:
100
+ PluginUtils.logsDirectory = logs_directory
101
+ else:
102
+ PluginUtils.logsDirectory = f"{PluginUtils.plugin_root_path()}/logs"
100
103
 
101
104
  directory = QDir(PluginUtils.logsDirectory)
102
105
  if not directory.exists():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oqtopus
3
- Version: 0.1.21
3
+ Version: 0.1.22
4
4
  Summary: A QGIS module manager
5
5
  Author-email: Damiano Lombardi <damiano@opengis.ch>
6
6
  License: GNU GENERAL PUBLIC LICENSE
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes