Add support for showing flight mode
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 6 Jan 2009 00:40:06 +0000 (01:40 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 6 Jan 2009 00:40:06 +0000 (01:40 +0100)
test/test-manager

index 09c6e19..ea976ca 100755 (executable)
@@ -54,6 +54,12 @@ def print_properties(key, value):
 for key in properties.keys():
        if key in ["Profiles", "Devices", "Connections"]:
                print_properties(key, properties[key])
+       elif key in ["FlightMode"]:
+               print "%s" % (key)
+               if properties[key] == dbus.Boolean(1):
+                       print "    true"
+               else:
+                       print "    false"
        else:
                print "%s" % (key)
                print "    %s" % (properties[key])