dicogis.ui.wdg_tab_publish module

Name:

TabPublish

Purpose:

Tab to publish previously exported metadata (JSON files) to a uData catalog, from DicoGIS Notebook.

Author:

Julien Moura (@geojulien)

class dicogis.ui.wdg_tab_publish.TabPublish(parent=None)

Bases: QWidget

Tab form to publish DicoGIS metadata JSON files to a uData catalog.

Parameters:

QWidget – inherited Qt widget

__init__(parent=None)

Initializes UI tab for uData publication.

Parameters:

parent (QWidget | None) – Qt parent widget

clear_report()

Reset the publication report (summary + errors table).

Return type:

None

get_input_folder()

Return the currently entered JSON metadata folder path.

Return type:

str

get_publish_options()

Return publish options as a dict. The API key is not included: it is not persisted to options.ini for security reasons.

Return type:

dict

get_udata_api_key()

Return the currently entered uData API key.

Return type:

str

get_udata_api_url_base()

Return the currently entered uData API base URL.

Return type:

str

get_udata_api_version()

Return the currently entered uData API version.

Return type:

str

get_udata_organization_id()

Return the currently entered uData organization ID, or None if empty.

Return type:

str | None

on_browse_input_folder()

Browse and insert the path of the folder containing JSON metadata files.

Return type:

Path | None

Returns:

selected folder path or None if something went wrong

retranslate_ui()

Update widgets texts for the currently active language.

Return type:

None

set_input_folder(folder_path)

Set the JSON metadata folder path.

Return type:

None

set_publish_options(values)

Apply publish options from a dict.

Return type:

None

show_report(report)

Display a publish_metadata_folder() report in the tab.

Parameters:

report (PublishReport) – outcome of the publication run.

Return type:

None