From 369424d4a14441daf50f87fb48be69a9340b3100 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 19 Aug 2004 03:44:10 +0000 Subject: [PATCH] * src/EditPerson.py: fix None gramps_id for new person * src/PeopleModel.py: add sort_name back in svn: r3435 --- ChangeLog | 4 ++++ src/EditPerson.py | 6 ++++-- src/PeopleModel.py | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b0259c623..eb08d356f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-08-18 Don Allingham + * src/EditPerson.py: fix None gramps_id for new person + * src/PeopleModel.py: add sort_name back in + 2004-08-18 Alex Roitman * configure.in: Check for pygtk instead of pygtk-dev. * src/accent.py: Replace unknown chars with "?". diff --git a/src/EditPerson.py b/src/EditPerson.py index 21626afb7..7dd94ef96 100644 --- a/src/EditPerson.py +++ b/src/EditPerson.py @@ -296,8 +296,10 @@ class EditPerson: build_dropdown(self.bplace,self.place_list) build_dropdown(self.dplace,self.place_list) build_dropdown(self.surname,self.db.get_surname_list()) - - self.gid.set_text(person.get_gramps_id()) + + gid = person.get_gramps_id() + if gid: + self.gid.set_text(gid) self.gid.set_editable(1) self.lds_baptism = RelLib.LdsOrd(self.person.get_lds_baptism()) diff --git a/src/PeopleModel.py b/src/PeopleModel.py index 6d43a58a8..332923352 100644 --- a/src/PeopleModel.py +++ b/src/PeopleModel.py @@ -85,6 +85,7 @@ class PeopleModel(gtk.GenericTreeModel): self.column_death_day, self.column_death_place, self.column_spouse, + self.sort_name, ] maps = self.db.get_people_view_maps()