Skip to content

Commit

Permalink
[s][core] CConf.Client list methods dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
fontanon committed Dec 31, 2011
1 parent 40dd81e commit c22bdb7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions udevdiscover/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ def loadconf(self, only_defaults=False):
casts = {GConf.ValueType.BOOL: GConf.Value.get_bool,
GConf.ValueType.INT: GConf.Value.get_int,
GConf.ValueType.FLOAT: GConf.Value.get_float,
GConf.ValueType.STRING: GConf.Value.get_string,
GConf.ValueType.LIST: GConf.Value.get_list}
GConf.ValueType.STRING: GConf.Value.get_string}
# This will be disabled until get_list method is implemented
# GConf.ValueType.LIST: GConf.Value.get_list}

if only_defaults:
#FIXME: Why appears this message in stderr?
Expand All @@ -86,10 +87,13 @@ def saveconf(self):
casts = {types.BooleanType: GConf.Client.set_bool,
types.IntType: GConf.Client.set_int,
types.FloatType: GConf.Client.set_float,
types.StringType: GConf.Client.set_string,
types.StringType: GConf.Client.set_string}
# This will be disabled until set_list method is implemented
"""
types.ListType: GConf.Client.set_list,
types.TupleType: GConf.Client.set_list,
set: GConf.Client.set_list}
"""

#TODO: To clear the gconf dir before save, is it convenient?
for name, value in self.options.items():
Expand Down

0 comments on commit c22bdb7

Please sign in to comment.