Skip to content

Commit

Permalink
Merge pull request #823 from opengisch/validator_output
Browse files Browse the repository at this point in the history
Validation of Schemas based on ili2db 3.x.x
  • Loading branch information
signedav authored Sep 7, 2023
2 parents bca09fb + df53d29 commit 2a3bbcc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion QgisModelBaker/gui/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ def set_current_layer(self, layer):
QStandardPaths.writableLocation(QStandardPaths.TempLocation),
output_file_name,
)
self.current_configuration.xtffile = os.path.join(
QStandardPaths.writableLocation(QStandardPaths.TempLocation),
f"dataexport_{output_file_name}",
)
self.current_configuration.tool = mode
if mode == DbIliMode.gpkg:
self.info_label.setText(
Expand Down Expand Up @@ -367,10 +371,10 @@ def _run(self, edited_command=None):
validation_result_state = False
with OverrideCursor(Qt.WaitCursor):
try:
self._validator_stdout(f"Run: {validator.command(True)}")
validation_result_state = (
validator.run(edited_command) == ilivalidator.Validator.SUCCESS
)
# debug info: print( validator.command(True) )
except JavaNotFoundError as e:
self.progress_bar.setValue(0)
self.progress_bar.setFormat(self.tr("Ili2db validation problems"))
Expand Down

0 comments on commit 2a3bbcc

Please sign in to comment.