From 49203cce1bd14b92a11e8678a9d57072892b6ea7 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 18 Nov 2009 22:37:46 +0100 Subject: [PATCH] Decode the settings information of a context --- test/list-contexts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/list-contexts b/test/list-contexts index eb024161..e556ca8e 100755 --- a/test/list-contexts +++ b/test/list-contexts @@ -34,7 +34,14 @@ for path in properties["Modems"]: print " [ %s ]" % (path) for key in properties.keys(): - val = str(properties[key]) + if key in ["Settings"]: + val = "{" + for i in properties[key].keys(): + val += " " + i + "=" + val += properties[key][i] + val += " }" + else: + val = str(properties[key]) print " %s = %s" % (key, val) print