examples: update python examples
Update the raw D-Bus python examples to use newer APIs where appropriate (and split the add-connection example into 1.0-only and 0.9-compatible versions). Update the gi-based python examples for the various API changes since they were last updated. Also add a comment to the ruby add-connection example pointing out that it's still using the old settings APIs.
This commit is contained in:
@@ -27,8 +27,13 @@ require 'ipaddr'
|
||||
# It also shows how to specify D-Bus signature for properties like "addresses"
|
||||
# and "clone-mac-address".
|
||||
#
|
||||
# This uses the old, backwards-compatible settings properties. The new 1.0
|
||||
# properties (eg, 'address-data' rather than 'addresses') would make this simpler;
|
||||
# see the python add-connection.py and add-connection-compat.py examples for
|
||||
# details
|
||||
#
|
||||
# Configuration settings are described here:
|
||||
# https://developer.gnome.org/NetworkManager/0.9/ref-settings.html
|
||||
# https://developer.gnome.org/NetworkManager/1.0/ref-settings.html
|
||||
#
|
||||
|
||||
# Helper functions
|
||||
|
Reference in New Issue
Block a user