# HG changeset patch # User Dan Smith dsmith@danplanet.com # Date 1338939366 25200 # Node ID c3a4540e9591f1338dc166229fa6183b2fe36a22 # Parent d3f6a4f8fd33c34e3ddb608c8094ed324a467880 Finish making RadioSetting work as an array of values In support of #188
diff -r d3f6a4f8fd33 -r c3a4540e9591 chirp/settings.py --- a/chirp/settings.py Mon Jun 04 07:15:31 2012 -0600 +++ b/chirp/settings.py Tue Jun 05 16:36:06 2012 -0700 @@ -255,8 +255,7 @@ if len(self) == 1: return self._elements[self._element_order[0]] else: - print self._elements - raise InternalError("Setting %s is not a scalar" % self._name) + return self._elements.values() else: return self.__dict__[name]
@@ -279,7 +278,7 @@ def __getitem__(self, name): if not isinstance(name, int): raise IndexError("Index `%s' is not an integer" % name) - return self._elements[name].get_value() + return self._elements[name]
def __setitem__(self, name, value): if not isinstance(name, int):