NetworkManager/examples/python/gi
Thomas Haller 4c8ff6f220 examples: fix handling secrets in nm-wg-set
When setting any secrets via D-Bus' Update2 call, then
it assumes that all settings are reset. That means, when
we modify any secrets in the client, we need to first load
them all.

Anyway, load always all secrets, then we can also print them
in the get output.

Honor WG_HIDE_KEYS like `wg` does.

(cherry picked from commit 6aa9e52bd8)
2019-02-26 09:40:57 +01:00
..
add_connection.py docs: misc. typos 2018-09-15 09:08:03 +02:00
checkpoint.py examples/python: utilize nm_utils_get_timestamp_msec() 2018-06-15 16:23:30 +02:00
deactivate-all.py docs: misc. typos 2018-09-15 09:08:03 +02:00
device-state-ip4config.py all: replace non-leading tabs with spaces 2018-02-07 13:32:04 +01:00
dns.py examples: add DNS example with python and GObject introspection 2016-12-12 22:06:24 +01:00
firewall-zone.py python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 10:56:05 +01:00
get-active-connections.py python: make dbus, gi examples, and debug-helper.py python3 ready 2017-12-04 11:21:40 +01:00
get-devices.py examples/python: fix "import gi" in example 2016-11-16 11:50:30 +01:00
get-lldp-neighbors.py python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 10:56:05 +01:00
get_ips.py python: make dbus, gi examples, and debug-helper.py python3 ready 2017-12-04 11:21:40 +01:00
list-connections.py python: make dbus, gi examples, and debug-helper.py python3 ready 2017-12-04 11:21:40 +01:00
nm-connection-update-stable-id.py examples: add python/gi example nm-connection-update-stable-id.py 2017-12-05 19:57:24 +01:00
nm-wg-set examples: fix handling secrets in nm-wg-set 2019-02-26 09:40:57 +01:00
README examples: add README for examples/python/gi 2015-12-07 15:59:20 +01:00
setting-user-data.py examples: add setting-user-data.py 2017-05-06 14:53:09 +02:00
show-wifi-networks.py python: make dbus, gi examples, and debug-helper.py python3 ready 2017-12-04 11:21:40 +01:00
update-ip4-method.py python: make dbus, gi examples, and debug-helper.py python3 ready 2017-12-04 11:21:40 +01:00
vpn-import.py docs: misc. typos 2018-09-15 09:08:03 +02:00

These examples show how to call libnm from Python using
GObject introspection.