Home | History | Annotate | Download | only in test-scripts
      1 #!/usr/bin/python
      2 
      3 import dbus, flimflam
      4 
      5 flim = flimflam.FlimFlam(dbus.SystemBus())
      6 
      7 for obj in flim.GetObjectList("Device"):
      8     obj_properties = obj.GetProperties(utf8_strings = True)
      9 
     10     print "[ %s ]" % (obj.object_path)
     11     for key in obj_properties.keys():
     12         print "    %s = %s" % \
     13             (key, flimflam.convert_dbus_value(obj_properties[key], 4))
     14 
     15 print
     16