Use global state property from manager interface
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Nov 2008 20:27:14 +0000 (21:27 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Nov 2008 20:27:14 +0000 (21:27 +0100)
test/get-state

index f82b44c..38c1dc9 100755 (executable)
@@ -7,6 +7,6 @@ bus = dbus.SystemBus()
 manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
                                        'org.moblin.connman.Manager')
 
-state = manager.GetState()
+properties = manager.GetProperties()
 
-print "System is %s" % (state)
+print "System is %s" % (properties["State"])