diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index a98232fd6..08b06a775 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -3,7 +3,8 @@ 2006-11-08 Martin Hawlisch * src/date_test.py: Correct import of Date object - * src/plugins/ImportGeneWeb.py: Fix parsing of baptism date + * src/plugins/ImportGeneWeb.py: Fix parsing of baptism date; Properly + parse death date in case birth date is unknown 2006-11-08 Don Allingham * src/DataViews/_RelationView.py: add toolbar buttons, catch edit diff --git a/gramps2/src/plugins/ImportGeneWeb.py b/gramps2/src/plugins/ImportGeneWeb.py index 66fcf2fe9..7527c5152 100644 --- a/gramps2/src/plugins/ImportGeneWeb.py +++ b/gramps2/src/plugins/ImportGeneWeb.py @@ -518,6 +518,7 @@ class GeneWebParser: dateRe = re.compile("^[kmes0-9~<>?]+.*$") source = None + birth_parsed = False birth_date = None birth_place = None birth_source = None @@ -656,9 +657,10 @@ class GeneWebParser: person.set_privacy(True) idx += 1 elif dateRe.match( fields[idx]): - if not birth_date: + if not birth_parsed: self.debug("Birth Date: %s" % fields[idx]) birth_date = self.parse_date(self.decode(fields[idx])) + birth_parsed = True else: self.debug("Death Date: %s" % fields[idx]) death_date = self.parse_date(self.decode(fields[idx]))