* src/gramps_main.py: switch to DB as default, remove save option

* src/RelLib.py: setup DB environment better
* src/DbPrompter.py: handle save/open with new DBs


svn: r2924
This commit is contained in:
Don Allingham
2004-02-28 18:46:40 +00:00
parent e94e313a16
commit 89f2a1cfc7
23 changed files with 94 additions and 251 deletions

View File

@@ -573,8 +573,6 @@ class ChooseParents:
self.db.commit_person(self.father)
if self.mother:
self.db.commit_person(self.mother)
Utils.modified()
class ModifyParents:
def __init__(self,db,person,family_id,family_update,full_update,parent_window=None):
@@ -679,7 +677,6 @@ class ModifyParents:
self.person.remove_parent_family_id(self.family.get_id())
self.person.add_parent_family_id(self.family.get_id(),mother_rel,father_rel)
mod = 1
Utils.modified()
if len(self.person.get_parent_family_id_list()):
make_pref = self.pref.get_active()
@@ -688,12 +685,10 @@ class ModifyParents:
if make_pref:
if self.family != plist[0]:
self.person.set_main_parent_family_id(self.family.get_id())
Utils.modified()
mod = 1
else:
if self.family == plist[0]:
self.person.set_main_parent_family_id(plist[0])
Utils.modified()
mod = 1
if mod: