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

add update_*_symbology queries to import process #263

Merged
merged 4 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,13 @@ def _import_enable_symbology_triggers(self):
logger.info("Enable symbology triggers")
cursor.execute("SELECT tww_sys.enable_symbology_triggers();")

logger.info("update_wastewater_node_symbology for all datasets - please be patient")
cursor.execute("SELECT tww_app.update_wastewater_node_symbology(NULL, True);")
logger.info("update_wastewater_structure_label for all datasets - please be patient")
cursor.execute("SELECT tww_app.update_wastewater_structure_label(NULL, True);")
logger.info("update_wn_symbology_by_overflow for all datasets - please be patient")
cursor.execute("SELECT tww_app.update_wn_symbology_by_overflow(NULL, True);")

connection.commit()
connection.close()

Expand Down
2 changes: 1 addition & 1 deletion plugin/teksi_wastewater/interlis/utils/various.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _log(self, level, msg, args, exc_info=None, extra=None, stacklevel=1):
if self._repeated > 0:
super()._log(
self._last_message[0],
f"[repeted {self._repeated} times]",
f"[repeated {self._repeated} times]",
args,
exc_info,
extra,
Expand Down
4 changes: 2 additions & 2 deletions plugin/teksi_wastewater/teksi_wastewater_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def initGui(self):
self.tr("Import from interlis"),
self.iface.mainWindow(),
)
self.importAction.setWhatsThis(self.tr("Import from interlis"))
self.importAction.setWhatsThis(self.tr("Import from INTERLIS"))
self.importAction.setEnabled(False)
self.importAction.setCheckable(False)
self.importAction.triggered.connect(self.actionImportClicked)
Expand All @@ -238,7 +238,7 @@ def initGui(self):
self.tr("Export to interlis"),
self.iface.mainWindow(),
)
self.exportAction.setWhatsThis(self.tr("Export from interlis"))
self.exportAction.setWhatsThis(self.tr("Export to INTERLIS"))
self.exportAction.setEnabled(False)
self.exportAction.setCheckable(False)
self.exportAction.triggered.connect(self.actionExportClicked)
Expand Down