6231: WARNING: configmanager.py: line 309: WARNING: ignoring key with wrong type
'behavior.autoload' svn: r20790
This commit is contained in:
parent
2a1367ca51
commit
a4b1518a04
@ -290,6 +290,12 @@ class ConfigManager(object):
|
|||||||
####################### Now, let's test and set:
|
####################### Now, let's test and set:
|
||||||
if (name in self.default and
|
if (name in self.default and
|
||||||
setting in self.default[name]):
|
setting in self.default[name]):
|
||||||
|
if isinstance(self.default[name][setting], bool):
|
||||||
|
#make sure 0 and 1 are False and True
|
||||||
|
if value == 0:
|
||||||
|
value = False
|
||||||
|
elif value == 1:
|
||||||
|
value = True
|
||||||
if self.check_type(self.default[name][setting], value):
|
if self.check_type(self.default[name][setting], value):
|
||||||
self.data[name][setting] = value
|
self.data[name][setting] = value
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user