summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-02-23 01:18:16 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-02-23 01:18:16 +0800
commit407bc8674877adf4042691a0408779fe84aad268 (patch)
tree5ea6fbf166c4ec0562d5ab6dc27ac1357cbfdb39
parent821087d360e4525a70dce778502fa22034ddaae4 (diff)
downloadccsm-407bc8674877adf4042691a0408779fe84aad268.tar.gz
ccsm-407bc8674877adf4042691a0408779fe84aad268.tar.bz2
Explcitly convert list items to str for now
-rw-r--r--ccm/Settings.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/ccm/Settings.py b/ccm/Settings.py
index 787461f..6dfcdb9 100644
--- a/ccm/Settings.py
+++ b/ccm/Settings.py
@@ -755,8 +755,13 @@ class BaseListSetting(Setting):
def _Read(self):
self.Store.clear()
+ # FIXME: The list types are being defined as all str
+ # in self.Widgets (which goes to self.Store) - this
+ # is a problem since values can be of other types,
+ # however explicitly converting to a string seems to
+ # work here
for values in zip(*[w.GetForRenderer() for w in self.Widgets]):
- self.Store.append(values)
+ self.Store.append([str (x) for x in values])
def OnDestroy(self, widget):
for w in self.Widgets:
@@ -1452,6 +1457,7 @@ def MakeSetting(setting, List=False):
t = setting.Type
stype = SettingTypeDict.get(t, None)
+
if not stype:
return