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>
|
||||
* src/plugins/GVFamilyLines.py:
|
||||
* src\PluginUtils\__init__.py:
|
||||
|
@ -280,7 +280,7 @@ default_value = {
|
||||
MIN_GENERATION_YEARS : 13,
|
||||
AVG_GENERATION_GAP : 20,
|
||||
GENERATION_DEPTH : 15,
|
||||
DATA_VIEWS: ('PersonView,RelationshipView,FamilyListView,PedigreeView,'
|
||||
'EventView,SourceView,PlaceView,MediaView,RepositoryView,'
|
||||
'NoteView'),
|
||||
DATA_VIEWS: ('MyGrampsView,PersonView,RelationshipView,FamilyListView,'
|
||||
'PedigreeView,EventView,SourceView,PlaceView,MediaView,'
|
||||
'RepositoryView,NoteView'),
|
||||
}
|
||||
|
@ -88,11 +88,20 @@ def set(key, value):
|
||||
def get(key):
|
||||
token = "/apps/gramps/%s/%s" % (key[0], key[1])
|
||||
if key[2] == 0:
|
||||
try:
|
||||
val = get_bool(token)
|
||||
except:
|
||||
val = default_value[key]
|
||||
elif key[2] == 1:
|
||||
try:
|
||||
val = get_int(token)
|
||||
except:
|
||||
val = default_value[key]
|
||||
else:
|
||||
try:
|
||||
val = get_string(token)
|
||||
except:
|
||||
val = default_value[key]
|
||||
if val == None:
|
||||
val = default_value[key]
|
||||
return val
|
||||
|
Loading…
Reference in New Issue
Block a user