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