* src/plugins/ImportGeneWeb.py: Distinguish unknown people

svn: r4583
This commit is contained in:
Martin Hawlisch 2005-05-13 12:59:24 +00:00
parent 28023ba12e
commit e1b74235c1
2 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,8 @@
* src/DateParser.py: Catch DateError and use text only date as fallback
* src/plugins/TestcaseGenerator.py: Handle DateError exception
* src/plugins/ImportGeneWeb.py: Distinguish unknown people
2005-05-12 Don Allingham <don@gramps-project.org>
* src/GrampsBSDDB.py: force database sync on transaction commit

View File

@ -419,6 +419,8 @@ class GeneWebParser:
person.set_primary_name(name)
if gender != None:
person.set_gender(gender)
else:
person.set_gender(RelLib.Person.UNKNOWN)
self.db.commit_person(person,self.trans)
personDataRe = re.compile("^[0-9<>~#\[({!].*$")
dateRe = re.compile("^[0-9~<>?]+.*$")
@ -660,7 +662,7 @@ class GeneWebParser:
def get_or_create_person(self,firstname,lastname):
person = None
mykey = firstname+lastname
if mykey in self.ikeys:
if mykey in self.ikeys and firstname != "?" and lastname != "?":
person = self.db.get_person_from_handle(self.ikeys[mykey])
else:
person = RelLib.Person()