since values is no longer static, we need to call the base class __init__ to initialise it
This commit is contained in:
parent
2fb6b9b329
commit
e14e400b6c
|
@ -207,7 +207,7 @@ class TerminatorConfValuestore:
|
||||||
reconfigure_callback = None
|
reconfigure_callback = None
|
||||||
|
|
||||||
def __init__ (self):
|
def __init__ (self):
|
||||||
self._values = {}
|
self.values = {}
|
||||||
|
|
||||||
# Our settings
|
# Our settings
|
||||||
def __getitem__ (self, keyname):
|
def __getitem__ (self, keyname):
|
||||||
|
@ -221,6 +221,7 @@ class TerminatorConfValuestore:
|
||||||
|
|
||||||
class TerminatorConfValuestoreDefault (TerminatorConfValuestore):
|
class TerminatorConfValuestoreDefault (TerminatorConfValuestore):
|
||||||
def __init__ (self):
|
def __init__ (self):
|
||||||
|
TerminatorConfValuestore.__init__ (self)
|
||||||
self.type = "Default"
|
self.type = "Default"
|
||||||
self.values = Defaults
|
self.values = Defaults
|
||||||
|
|
||||||
|
@ -228,6 +229,7 @@ class TerminatorConfValuestoreRC (TerminatorConfValuestore):
|
||||||
rcfilename = ""
|
rcfilename = ""
|
||||||
type = "RCFile"
|
type = "RCFile"
|
||||||
def __init__ (self):
|
def __init__ (self):
|
||||||
|
TerminatorConfValuestore.__init__ (self)
|
||||||
try:
|
try:
|
||||||
directory = os.environ['XDG_CONFIG_HOME']
|
directory = os.environ['XDG_CONFIG_HOME']
|
||||||
except KeyError, e:
|
except KeyError, e:
|
||||||
|
@ -358,6 +360,7 @@ class TerminatorConfValuestoreGConf (TerminatorConfValuestore):
|
||||||
notifies = None
|
notifies = None
|
||||||
|
|
||||||
def __init__ (self, profileName = None):
|
def __init__ (self, profileName = None):
|
||||||
|
TerminatorConfValuestore.__init__ (self)
|
||||||
self.type = "GConf"
|
self.type = "GConf"
|
||||||
self.inactive = False
|
self.inactive = False
|
||||||
self.cache = {}
|
self.cache = {}
|
||||||
|
|
Loading…
Reference in New Issue