* src/plugins/ImportGeneWeb.py: Properly parse death date in case birth date is unknown
svn: r7593
This commit is contained in:
parent
88f728f877
commit
7839194619
@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
2006-11-08 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
2006-11-08 Martin Hawlisch <Martin.Hawlisch@gmx.de>
|
||||||
* src/date_test.py: Correct import of Date object
|
* 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>
|
2006-11-08 Don Allingham <don@gramps-project.org>
|
||||||
* src/DataViews/_RelationView.py: add toolbar buttons, catch edit
|
* src/DataViews/_RelationView.py: add toolbar buttons, catch edit
|
||||||
|
@ -518,6 +518,7 @@ class GeneWebParser:
|
|||||||
dateRe = re.compile("^[kmes0-9~<>?]+.*$")
|
dateRe = re.compile("^[kmes0-9~<>?]+.*$")
|
||||||
|
|
||||||
source = None
|
source = None
|
||||||
|
birth_parsed = False
|
||||||
birth_date = None
|
birth_date = None
|
||||||
birth_place = None
|
birth_place = None
|
||||||
birth_source = None
|
birth_source = None
|
||||||
@ -656,9 +657,10 @@ class GeneWebParser:
|
|||||||
person.set_privacy(True)
|
person.set_privacy(True)
|
||||||
idx += 1
|
idx += 1
|
||||||
elif dateRe.match( fields[idx]):
|
elif dateRe.match( fields[idx]):
|
||||||
if not birth_date:
|
if not birth_parsed:
|
||||||
self.debug("Birth Date: %s" % fields[idx])
|
self.debug("Birth Date: %s" % fields[idx])
|
||||||
birth_date = self.parse_date(self.decode(fields[idx]))
|
birth_date = self.parse_date(self.decode(fields[idx]))
|
||||||
|
birth_parsed = True
|
||||||
else:
|
else:
|
||||||
self.debug("Death Date: %s" % fields[idx])
|
self.debug("Death Date: %s" % fields[idx])
|
||||||
death_date = self.parse_date(self.decode(fields[idx]))
|
death_date = self.parse_date(self.decode(fields[idx]))
|
||||||
|
Loading…
Reference in New Issue
Block a user