Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2023 03 interlis additional models new #97

Merged
merged 13 commits into from
Dec 20, 2023
1 change: 1 addition & 0 deletions qgepplugin/gui/qgepdatamodeldialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

# Allow to choose which releases can be installed
AVAILABLE_RELEASES = {
# TODO: change to final
"1.6.0": f"https://github.com/QGEP/datamodel/archive/1.6.0.zip",
}
if QSettings().value("/QGEP/DeveloperMode", False, type=bool):
Expand Down
31 changes: 31 additions & 0 deletions qgepplugin/qgepplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,39 @@ def actionExportClicked(self):

def actionImportClicked(self):
# We only import now to avoid useless exception if dependencies aren't met

# if b then additional import configuration dialog. But does crash when loading ui file - see gui_importc.py loadUi
b = False
if b:
# 8.5.2023
try:

from .qgepqwat2ili.qgepqwat2ili.gui import action_importc

except ImportError as e:
self.iface.messageBar().pushMessage(
"Error",
"Could not load qgepqwat2ili due to unmet dependencies. See logs for more details (actionImportClicked).",
level=Qgis.Critical,
)
self.logger.error(str(e))
return
# 8.5.2023
self.iface.messageBar().pushMessage(
"Info",
"action_importc loaded",
level=Qgis.Info,
)

# breakpoint()
self._configure_qgepqwat2ili_from_qgep_layer()
action_importc(self)

# end

try:
from .qgepqwat2ili.qgepqwat2ili.gui import action_import

except ImportError as e:
self.iface.messageBar().pushMessage(
"Error",
Expand Down