Better handling of sources

svn: r79
This commit is contained in:
Don Allingham
2001-06-02 22:56:04 +00:00
parent 897103ddf7
commit 91a5398932
12 changed files with 1395 additions and 842 deletions

View File

@@ -558,6 +558,8 @@ def new_database_response(val):
const.personalEvents.sort()
const.personalAttributes = const.personalConstantAttributes.keys()
const.personalAttributes.sort()
const.familyAttributes = const.familyConstantAttributes.keys()
const.familyAttributes.sort()
const.familyRelations = const.familyConstantRelations
database.new()
topWindow.set_title("Gramps")
@@ -1351,6 +1353,9 @@ def revert_query(value):
const.personalAttributes = const.personalConstantAttributes.keys()
const.personalAttributes.sort()
const.familyAttributes = const.familyConstantAttributes.keys()
const.familyAttributes.sort()
const.marriageEvents = const.familyConstantEvents.keys()
const.marriageEvents.sort()
@@ -1906,6 +1911,11 @@ def load_database(name):
if type not in const.personalAttributes:
const.personalAttributes.append(type)
mylist = database.getFamilyAttributeTypes()
for type in mylist:
if type not in const.familyAttributes:
const.familyAttributes.append(type)
mylist = database.getFamilyRelationTypes()
for type in mylist:
if type not in const.familyRelations: