* src/PeopleModel.py: sort based of "group as" value

* src/GrampsInMem.py: used "group as" value for surname list
* src/GrampsBSDDB.py: used "group as" value for surname list
* src/GrampsDbBase.py: accept "" and None for empty id values


svn: r3584
This commit is contained in:
Don Allingham
2004-09-29 03:19:01 +00:00
parent b79615e888
commit 6a6677e240
8 changed files with 92 additions and 32 deletions

View File

@ -1,4 +1,4 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2004 Donald N. Allingham
@ -483,9 +483,9 @@ class GrampsDbBase:
Adds a Person to the database, assigning internal IDs if they have
not already been defined.
"""
if person.get_gramps_id() == None:
if not person.get_gramps_id():
person.set_gramps_id(self.find_next_person_gramps_id())
if person.get_handle() == None:
if not person.get_handle():
person.set_handle(Utils.create_id())
self.commit_person(person,transaction)
self.genderStats.count_person (person, self)