* src/plugins/ImportGeneWeb.py: Properly parse death date in case birth date is unknown

svn: r7593
This commit is contained in:
Martin Hawlisch 2006-11-09 07:10:26 +00:00
parent 88f728f877
commit 7839194619
2 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,8 @@
2006-11-08 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* 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 <don@gramps-project.org>
* src/DataViews/_RelationView.py: add toolbar buttons, catch edit

View File

@ -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]))