From: ghost Date: Wed, 11 Feb 2009 19:11:58 +0000 (+0100) Subject: revert some changes X-Git-Tag: 2.6.0~450 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/e6b1c147b24594ab5533511c1dce13407e7d0d0a revert some changes --- diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 1c8e0903..68fd0f74 100755 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -26,7 +26,7 @@ from time import localtime, strftime # the default if saved_value is 'None' (default) # or invalid. # -class ConfigElement: +class ConfigElement(object): def __init__(self): self.saved_value = None self.last_value = None @@ -154,7 +154,7 @@ def getKeyNumber(key): assert key in KEY_NUMBERS return key - KEY_0 -class choicesList: # XXX: we might want a better name for this +class choicesList(object): # XXX: we might want a better name for this LIST_TYPE_LIST = 1 LIST_TYPE_DICT = 2 @@ -999,7 +999,7 @@ class ConfigPassword(ConfigText): if self.hidden: text = len(text) * self.censor_char return (mtext, text, mark) - + def onSelect(self, session): ConfigText.onSelect(self, session) self.hidden = False @@ -1382,7 +1382,7 @@ class ConfigNothing(ConfigSelection): # config.saved_value == {"foo": {"bar": "True"}, "foobar": "False"} # -class ConfigSubsectionContent: +class ConfigSubsectionContent(object): pass # we store a backup of the loaded configuration @@ -1395,7 +1395,7 @@ class ConfigSubsectionContent: # config.dipswitches.append(ConfigYesNo()) # config.dipswitches.append(ConfigYesNo()) # config.dipswitches.append(ConfigYesNo()) -class ConfigSubList(list): +class ConfigSubList(list, object): def __init__(self): list.__init__(self) self.stored_values = {} @@ -1438,7 +1438,7 @@ class ConfigSubList(list): # care must be taken that the 'key' has a proper # str() method, because it will be used in the config # file. -class ConfigSubDict(dict): +class ConfigSubDict(dict, object): def __init__(self): dict.__init__(self) self.stored_values = {} @@ -1487,7 +1487,7 @@ class ConfigSubDict(dict): # __setattr__. # If you don't understand this, try adding # __setattr__ to a usual exisiting class and you will. -class ConfigSubsection: +class ConfigSubsection(object): def __init__(self): self.__dict__["content"] = ConfigSubsectionContent() self.content.items = { }