[PATCH] list-modems: Pretty-print main menu.

2010-08-17 Thread Andrzej Zaborowski
---
 test/list-modems |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/test/list-modems b/test/list-modems
index 191743b..eee00b0 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)
-- 
1.7.1.86.g0e460.dirty

___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


Re: [PATCH] list-modems: Pretty-print main menu.

2010-08-17 Thread Denis Kenzior
Hi Andrew,

On 08/17/2010 10:36 AM, Andrzej Zaborowski wrote:
> ---
>  test/list-modems |3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/test/list-modems b/test/list-modems
> index 191743b..eee00b0 100755

Patch has been applied, thanks.

Regards,
-Denis
___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono