|
@@ -561,7 +561,7 @@ class Settings:
|
|
'condition' : {
|
|
'condition' : {
|
|
'size' : {
|
|
'size' : {
|
|
'width' : 100,
|
|
'width' : 100,
|
|
- 'height' : 50,
|
|
|
|
|
|
+ 'height' : 40,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -866,9 +866,6 @@ class Settings:
|
|
@param subkey subkey (value or list)
|
|
@param subkey subkey (value or list)
|
|
@param value value
|
|
@param value value
|
|
"""
|
|
"""
|
|
- print dict
|
|
|
|
- print group, key, subkey, value
|
|
|
|
- print 'x'
|
|
|
|
if not dict.has_key(group):
|
|
if not dict.has_key(group):
|
|
dict[group] = {}
|
|
dict[group] = {}
|
|
|
|
|
|
@@ -879,8 +876,6 @@ class Settings:
|
|
# TODO: len(subkey) > 2
|
|
# TODO: len(subkey) > 2
|
|
if not dict[group][key].has_key(subkey[0]):
|
|
if not dict[group][key].has_key(subkey[0]):
|
|
dict[group][key][subkey[0]] = {}
|
|
dict[group][key][subkey[0]] = {}
|
|
- print group, key, subkey, value
|
|
|
|
- print dict[group][key]
|
|
|
|
dict[group][key][subkey[0]][subkey[1]] = value
|
|
dict[group][key][subkey[0]][subkey[1]] = value
|
|
else:
|
|
else:
|
|
dict[group][key][subkey] = value
|
|
dict[group][key][subkey] = value
|