Functions¶
|
|
|
|
|
|
|
|
|
|
|
Details¶
- EDataServerUI4.buffer_tagger_connect(textview)¶
- Parameters:
textview (
Gtk.TextView) –
- EDataServerUI4.buffer_tagger_disconnect(textview)¶
- Parameters:
textview (
Gtk.TextView) –
- EDataServerUI4.buffer_tagger_update_tags(textview)¶
- Parameters:
textview (
Gtk.TextView) –
- EDataServerUI4.trust_prompt_describe_certificate_errors(flags)¶
- Parameters:
flags (
Gio.TlsCertificateFlags) – aGio.TlsCertificateFlagsto describe- Returns:
A newly allocated string with text description of flags. Free the returned pointer with
GLib.free() when no longer needed.- Return type:
Converts flags into a localized text description of the set bits, one bit description per line. If no bit is set, then an empty string is returned.
New in version 3.16.
- EDataServerUI4.trust_prompt_run_for_source(parent, source, certificate_pem, certificate_errors, error_text, allow_source_save, cancellable, callback, *user_data)¶
- Parameters:
parent (
Gtk.Window) – AGtk.Windowto use as a parent for the trust prompt dialogsource (
EDataServer.Source) – anEDataServer.Source, withEDataServer.SOURCE_EXTENSION_AUTHENTICATIONcertificate_pem (
str) – a PEM-encoded certificate for which to show the trust promptcertificate_errors (
Gio.TlsCertificateFlags) – errors of the certificate_pemerror_text (
strorNone) – an optional error text to show in the dialog; can beNoneallow_source_save (
bool) – whether can also save any source changescancellable (
Gio.CancellableorNone) – aGio.Cancellable, orNonecallback (
Gio.AsyncReadyCallbackorNone) – a callback to call, when the prompt (an source save) is done
Similar to
EDataServerUI4.trust_prompt_run_modal(), except it also manages all the necessary things around the source ‘s SSL/TLS trust properties when it also contains %E_SOURCE_EXTENSION_WEBDAV, thus the SSL/TLS trust on the WebDAV source is properly updated based on the user’s choice. The call is finished withEDataServerUI4.trust_prompt_run_for_source_finish(), which also returns the user’s choice. The finish happens in the callback. This is necessary, because the source can be also saved.The function fails, if the source doesn’t contain the
EDataServer.SOURCE_EXTENSION_AUTHENTICATION.Note: The dialog is not shown when the stored certificate trust in the WebDAV source matches the certificate_pem and the stored result is
EDataServer.TrustPromptResponse.REJECT.New in version 3.16.
- EDataServerUI4.trust_prompt_run_for_source_finish(source, result, response)¶
- Parameters:
source (
EDataServer.Source) – anEDataServer.Sourcewhich was used withEDataServerUI4.trust_prompt_run_for_source()result (
Gio.AsyncResult) – aGio.AsyncResultresponse (
EDataServer.TrustPromptResponse) – an output argument, user’s response to the trust prompt
- Raises:
- Returns:
- Return type:
Finishes the operation started with
EDataServerUI4.trust_prompt_run_for_source(). The response will contain a code of the user’s choice. TheEDataServer.TrustPromptResponse.UNKNOWNis used, when the user cancelled the trust prompt dialog and no changes are made with the source.If an error occurs, the function sets error and returns
False.New in version 3.16.
- EDataServerUI4.trust_prompt_run_modal(parent, source_extension, source_display_name, host, certificate_pem, certificate_errors, error_text)¶
- Parameters:
parent (
Gtk.Window) – AGtk.Windowto use as a parent for the trust prompt dialogsource_extension (
strorNone) – anEDataServer.Sourceextension, to identify a kind of the source; orNonesource_display_name (
strorNone) – anEDataServer.Sourcedisplay name, to identify what prompts; orNonehost (
str) – a host name to which the certificate belongscertificate_pem (
str) – a PEM-encoded certificate for which to show the trust promptcertificate_errors (
Gio.TlsCertificateFlags) – errors of the certificate_pemerror_text (
strorNone) – an optional error text to show in the dialog; can beNone
- Returns:
A code of the user’s choice. The
EDataServer.TrustPromptResponse.UNKNOWNis returned, when the user cancelled the trust prompt dialog.- Return type:
Runs modal (doesn’t return until the dialog is closed) a trust prompt dialog, it is a prompt whether a user wants to accept or reject the certificate_pem for the host due to the certificate_errors errors.
The pair source_extension and source_display_name influences the trust prompt message. If both are set, then the message also contains which source failed to connect according to these two arguments.
The dialog can contain a custom error text, passed in as error_text. The error might be a detailed error string returned by the server. If set, it is prefixed with “Detailed error:” string.
New in version 3.16.