blob: e1ec1e467179d4f7154c0b406d111463eeeabced [file] [log] [blame]
#!/usr/bin/python
import dbus, flimflam, string
flim = flimflam.FlimFlam(dbus.SystemBus())
active = flim.GetActiveProfile()
for profile in flim.GetObjectList("Profile"):
if profile.object_path == active.object_path:
print "[ %s ] <== active" % (profile.object_path)
else:
print "[ %s ]" % (profile.object_path)
properties = profile.GetProperties(utf8_strings = True)
for key in properties.keys():
print " %s = %s" % \
(key, flimflam.convert_dbus_value(properties[key], 4))
print