From 36294ddbce54dd059f41d618c4428c59a175d585 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 2 Mar 2011 23:37:22 -0600 Subject: [PATCH] examples: port system wifi example to NM 0.9 --- examples/python/add-system-wifi-connection.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/python/add-system-wifi-connection.py b/examples/python/add-system-wifi-connection.py index f12723d15..b9eca9180 100755 --- a/examples/python/add-system-wifi-connection.py +++ b/examples/python/add-system-wifi-connection.py @@ -14,7 +14,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -# Copyright (C) 2010 Red Hat, Inc. +# Copyright (C) 2011 Red Hat, Inc. # import dbus @@ -56,9 +56,8 @@ con = dbus.Dictionary({ bus = dbus.SystemBus() -print con -proxy = bus.get_object("org.freedesktop.NetworkManagerSystemSettings", "/org/freedesktop/NetworkManagerSettings") -settings = dbus.Interface(proxy, "org.freedesktop.NetworkManagerSettings") +proxy = bus.get_object("org.freedesktop.NetworkManager", "/org/freedesktop/NetworkManager/Settings") +settings = dbus.Interface(proxy, "org.freedesktop.NetworkManager.Settings") settings.AddConnection(con)