2007-12-30 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/Config/_GrampsConfigKeys.py: added MyGrampsView * src/Config/_GrampsGconfKeys.py: added try/excepts on get_types svn: r9647
This commit is contained in:
parent
e364f891d5
commit
f8cef8d975
@ -1,3 +1,7 @@
|
|||||||
|
2007-12-30 Douglas S. Blank <dblank@cs.brynmawr.edu>
|
||||||
|
* src/Config/_GrampsConfigKeys.py: added MyGrampsView
|
||||||
|
* src/Config/_GrampsGconfKeys.py: added try/excepts on get_types
|
||||||
|
|
||||||
2007-12-30 Brian Matherly <brian@gramps-project.org>
|
2007-12-30 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/plugins/GVFamilyLines.py:
|
* src/plugins/GVFamilyLines.py:
|
||||||
* src\PluginUtils\__init__.py:
|
* src\PluginUtils\__init__.py:
|
||||||
|
@ -280,7 +280,7 @@ default_value = {
|
|||||||
MIN_GENERATION_YEARS : 13,
|
MIN_GENERATION_YEARS : 13,
|
||||||
AVG_GENERATION_GAP : 20,
|
AVG_GENERATION_GAP : 20,
|
||||||
GENERATION_DEPTH : 15,
|
GENERATION_DEPTH : 15,
|
||||||
DATA_VIEWS: ('PersonView,RelationshipView,FamilyListView,PedigreeView,'
|
DATA_VIEWS: ('MyGrampsView,PersonView,RelationshipView,FamilyListView,'
|
||||||
'EventView,SourceView,PlaceView,MediaView,RepositoryView,'
|
'PedigreeView,EventView,SourceView,PlaceView,MediaView,'
|
||||||
'NoteView'),
|
'RepositoryView,NoteView'),
|
||||||
}
|
}
|
||||||
|
@ -88,11 +88,20 @@ def set(key, value):
|
|||||||
def get(key):
|
def get(key):
|
||||||
token = "/apps/gramps/%s/%s" % (key[0], key[1])
|
token = "/apps/gramps/%s/%s" % (key[0], key[1])
|
||||||
if key[2] == 0:
|
if key[2] == 0:
|
||||||
val = get_bool(token)
|
try:
|
||||||
|
val = get_bool(token)
|
||||||
|
except:
|
||||||
|
val = default_value[key]
|
||||||
elif key[2] == 1:
|
elif key[2] == 1:
|
||||||
val = get_int(token)
|
try:
|
||||||
|
val = get_int(token)
|
||||||
|
except:
|
||||||
|
val = default_value[key]
|
||||||
else:
|
else:
|
||||||
val = get_string(token)
|
try:
|
||||||
|
val = get_string(token)
|
||||||
|
except:
|
||||||
|
val = default_value[key]
|
||||||
if val == None:
|
if val == None:
|
||||||
val = default_value[key]
|
val = default_value[key]
|
||||||
return val
|
return val
|
||||||
|
Loading…
Reference in New Issue
Block a user