diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index a850dc509..e96970771 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2004-10-06 Don Allingham + * src/ReadGedcom.py: remove extra commits + 2004-10-06 Alex Roitman * src/Makefile.am: Remove extra DESTDIR. * src/docgen/Makefile.am: Remove extra DESTDIR, correct pycheck target. diff --git a/gramps2/src/GrampsDbBase.py b/gramps2/src/GrampsDbBase.py index d930ce65f..d950536c5 100644 --- a/gramps2/src/GrampsDbBase.py +++ b/gramps2/src/GrampsDbBase.py @@ -132,13 +132,12 @@ class GrampsDbBase: Returns 1 if the database has been opened. """ return self.person_map != None - + def commit_person(self,person,transaction,change_time=None): """ Commits the specified Person to the database, storing the changes as part of the transaction. """ - if change_time: person.change = int(change_time) else: diff --git a/gramps2/src/ReadGedcom.py b/gramps2/src/ReadGedcom.py index f0441f7ec..3ef7c84d1 100644 --- a/gramps2/src/ReadGedcom.py +++ b/gramps2/src/ReadGedcom.py @@ -605,7 +605,6 @@ class GedcomParser: intid = Utils.create_id() person.set_handle(intid) person.set_gramps_id(gramps_id) - self.db.add_person(person,self.trans) self.gid2id[gramps_id] = intid return person @@ -618,7 +617,6 @@ class GedcomParser: intid = Utils.create_id() source.set_handle(intid) source.set_gramps_id(gramps_id) - self.db.add_source(source,self.trans) self.sid2id[gramps_id] = intid return source @@ -632,7 +630,6 @@ class GedcomParser: place.set_handle(intid) place.set_title(gramps_id) place.set_gramps_id(self.db.find_next_place_gramps_id()) - self.db.add_place(place,self.trans) self.lid2id[gramps_id] = intid return place @@ -645,7 +642,6 @@ class GedcomParser: intid = Utils.create_id() family.set_handle(intid) family.set_gramps_id(gramps_id) - self.db.add_family(family,self.trans) self.fid2id[gramps_id] = intid return family