From 44c1b553db883deabbbe11959baabc20d365ebe6 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 25 Mar 2004 15:05:56 +0000 Subject: [PATCH] * src/gramps_main.py: remove unused functions, fix history * src/FamilyView.py: improve reordering of children svn: r3059 --- ChangeLog | 4 ++++ src/EditPerson.py | 1 - src/NameEdit.py | 1 - src/RelLib.py | 17 +++++++++-------- src/gramps.glade | 4 ++-- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 55e95c219..0c0fe2e66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-03-24 Don Allingham + * src/gramps_main.py: remove unused functions, fix history + * src/FamilyView.py: improve reordering of children + 2004-03-22 Don Allingham * src/gramps_main.py: rebuild models after import * src/gramps.glade: expand child menu diff --git a/src/EditPerson.py b/src/EditPerson.py index 4db6bdf9e..3785bdf68 100644 --- a/src/EditPerson.py +++ b/src/EditPerson.py @@ -1455,7 +1455,6 @@ class EditPerson: if surname != name.get_surname(): name.set_surname(surname) - self.db.add_surname(surname) if given != name.get_first_name(): name.set_first_name(given) diff --git a/src/NameEdit.py b/src/NameEdit.py index 99f51b380..04a3b3608 100644 --- a/src/NameEdit.py +++ b/src/NameEdit.py @@ -219,7 +219,6 @@ class NameEditor: if self.name.get_surname() != last: self.name.set_surname(last) - self.parent.db.add_surname(last) self.parent.lists_changed = 1 if self.name.get_suffix() != suffix: diff --git a/src/RelLib.py b/src/RelLib.py index 848d33b57..dd061d713 100644 --- a/src/RelLib.py +++ b/src/RelLib.py @@ -2519,6 +2519,15 @@ class GrampsDB: self.place2title = {} self.genderStats = GenderStats () + def start_transaction(self): + pass + + def end_transaction(self): + pass + + def abort_transaction(self): + pass + #EARNEY, may eventually be able to use secondary indexes for this #that way we will not have to track these with code. def get_surnames(self): @@ -2530,14 +2539,6 @@ class GrampsDB: vals.sort() return vals - #this function may eventually become obsolete.. if we use - #secondary indexes. - def add_surname(self,name): - pass -# if name and name not in self.surnames: -# self.surnames.append(name) -# self.surnames.sort() - def get_bookmarks(self): """returns the list of Person instances in the bookmarks""" return self.bookmarks diff --git a/src/gramps.glade b/src/gramps.glade index 2018b17c7..b0a4e2539 100644 --- a/src/gramps.glade +++ b/src/gramps.glade @@ -1918,7 +1918,7 @@ True True True - False + True False @@ -2248,7 +2248,7 @@ True True True - False + True False