since values is no longer static, we need to call the base class __init__ to initialise it

This commit is contained in:
Chris Jones 2009-03-06 11:30:56 +00:00
parent 2fb6b9b329
commit e14e400b6c
1 changed files with 4 additions and 1 deletions

View File

@ -207,7 +207,7 @@ class TerminatorConfValuestore:
reconfigure_callback = None
def __init__ (self):
self._values = {}
self.values = {}
# Our settings
def __getitem__ (self, keyname):
@ -221,6 +221,7 @@ class TerminatorConfValuestore:
class TerminatorConfValuestoreDefault (TerminatorConfValuestore):
def __init__ (self):
TerminatorConfValuestore.__init__ (self)
self.type = "Default"
self.values = Defaults
@ -228,6 +229,7 @@ class TerminatorConfValuestoreRC (TerminatorConfValuestore):
rcfilename = ""
type = "RCFile"
def __init__ (self):
TerminatorConfValuestore.__init__ (self)
try:
directory = os.environ['XDG_CONFIG_HOME']
except KeyError, e:
@ -358,6 +360,7 @@ class TerminatorConfValuestoreGConf (TerminatorConfValuestore):
notifies = None
def __init__ (self, profileName = None):
TerminatorConfValuestore.__init__ (self)
self.type = "GConf"
self.inactive = False
self.cache = {}