diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2010-08-17 17:36:59 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-08-18 00:28:12 -0500 |
commit | df35a66c64d4a2d1b82bf88295fe20c8172fb72f (patch) | |
tree | 699f98d0ddd187cfb619302cd9698b2ac29590bf /test/list-modems | |
parent | c8c8116db4feddfef5ea4395064ad363311ded65 (diff) | |
download | ofono-df35a66c64d4a2d1b82bf88295fe20c8172fb72f.tar.bz2 |
list-modems: Pretty-print main menu
Diffstat (limited to 'test/list-modems')
-rwxr-xr-x | test/list-modems | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/list-modems b/test/list-modems index 191743bc..eee00b0f 100755 --- a/test/list-modems +++ b/test/list-modems @@ -58,6 +58,9 @@ for path in properties["Modems"]: "MicrophoneVolume", "SpeakerVolume"]: val = int(properties[key]) + elif key in ["MainMenu"]: + val = ", ".join([ text + " (" + str(int(icon)) + + ")" for text, icon in properties[key] ]) else: val = str(properties[key]) print " %s = %s" % (key, val) |