1#!/usr/bin/python 2 3import dbus, flimflam 4 5flim = flimflam.FlimFlam(dbus.SystemBus()) 6 7for 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 15print 16