From e1b74235c1095dbc14c1af17d7d1953c59f3e494 Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Fri, 13 May 2005 12:59:24 +0000 Subject: [PATCH] * src/plugins/ImportGeneWeb.py: Distinguish unknown people svn: r4583 --- gramps2/ChangeLog | 2 ++ gramps2/src/plugins/ImportGeneWeb.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index a5a60ca57..65442fd0a 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -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 * src/GrampsBSDDB.py: force database sync on transaction commit diff --git a/gramps2/src/plugins/ImportGeneWeb.py b/gramps2/src/plugins/ImportGeneWeb.py index a54af9515..273baf036 100644 --- a/gramps2/src/plugins/ImportGeneWeb.py +++ b/gramps2/src/plugins/ImportGeneWeb.py @@ -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()