* src/EditPerson.py: fix None gramps_id for new person

* src/PeopleModel.py: add sort_name back in


svn: r3435
This commit is contained in:
Don Allingham 2004-08-19 03:44:10 +00:00
parent ec9ab8a6d9
commit 369424d4a1
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2004-08-18 Don Allingham <dallingham@users.sourceforge.net>
* src/EditPerson.py: fix None gramps_id for new person
* src/PeopleModel.py: add sort_name back in
2004-08-18 Alex Roitman <shura@alex.neuro.umn.edu>
* configure.in: Check for pygtk instead of pygtk-dev.
* src/accent.py: Replace unknown chars with "?".

View File

@ -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())

View File

@ -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()