2007-11-25 Douglas S. Blank <dblank@cs.brynmawr.edu>

* src/Config/_GrampsGconfKeys.py: fixed changes in gconf interface



svn: r9401
This commit is contained in:
Doug Blank 2007-11-25 17:32:20 +00:00
parent 36c73d38b3
commit 0e82517d94
2 changed files with 15 additions and 12 deletions

View File

@ -1,3 +1,6 @@
2007-11-25 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/Config/_GrampsGconfKeys.py: fixed changes in gconf interface
2007-11-25 Douglas S.Blank <dblank@cs.brynmawr.edu> 2007-11-25 Douglas S.Blank <dblank@cs.brynmawr.edu>
* src/gen/lib/test/date_test.py: turned each test into a case * src/gen/lib/test/date_test.py: turned each test into a case

View File

@ -98,10 +98,10 @@ def get(key):
return val return val
def get_bool(key): def get_bool(key):
try: val = client.get(key)
val = client.get_bool(key) if val == None:
except gobject.GError: return None
val = None val = client.get_bool(key)
if val in (True, False): if val in (True, False):
return val return val
else: else:
@ -115,10 +115,10 @@ def set_bool(key, val):
client.set_bool(key, val) client.set_bool(key, val)
def get_int(key, correct_tuple=None): def get_int(key, correct_tuple=None):
try: val = client.get(key)
val = client.get_int(key) if val == None:
except gobject.GError: return None
val = None val = client.get_int(key)
if not correct_tuple or val in correct_tuple: if not correct_tuple or val in correct_tuple:
return val return val
else: else:
@ -132,10 +132,10 @@ def set_int(key, val, correct_tuple=None):
client.set_int(key, val) client.set_int(key, val)
def get_string(key, test_func=None): def get_string(key, test_func=None):
try: val = client.get(key)
val = client.get_string(key) if val == None:
except gobject.GError: return None
val = None val = client.get_string(key)
if not test_func or test_func(val): if not test_func or test_func(val):
return val return val
else: else: