GEDCOM gender fix for PAF
svn: r4966
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2005-07-24 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/MediaView.py: don't indicate missing path for Notes, which
|
||||||
|
aren't supposed to have a path
|
||||||
|
* src/ReadGedcom.py: Handle PAF's non-GEDCOM compliant method of
|
||||||
|
indicating unknown gender.
|
||||||
|
|
||||||
2005-07-24 Alex Roitman <shura@gramps-project.org>
|
2005-07-24 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/plugins/RelCalc.py (__init__): Correctly name column header.
|
* src/plugins/RelCalc.py (__init__): Correctly name column header.
|
||||||
|
|
||||||
|
@@ -248,7 +248,9 @@ class MediaView:
|
|||||||
self.mid.set_text(mobj.get_gramps_id())
|
self.mid.set_text(mobj.get_gramps_id())
|
||||||
self.mtype.set_text(type_name)
|
self.mtype.set_text(type_name)
|
||||||
self.mdesc.set_text(mobj.get_description())
|
self.mdesc.set_text(mobj.get_description())
|
||||||
if len(path) == 0 or fexists == 0:
|
if type_name == _('Note'):
|
||||||
|
self.mpath.set_text('')
|
||||||
|
elif len(path) == 0 or fexists == 0:
|
||||||
self.mpath.set_text(_("The file no longer exists"))
|
self.mpath.set_text(_("The file no longer exists"))
|
||||||
else:
|
else:
|
||||||
self.mpath.set_text(path)
|
self.mpath.set_text(path)
|
||||||
|
@@ -1004,8 +1004,10 @@ class GedcomParser:
|
|||||||
self.person.set_gender(RelLib.Person.UNKNOWN)
|
self.person.set_gender(RelLib.Person.UNKNOWN)
|
||||||
elif matches[2][0] == "M":
|
elif matches[2][0] == "M":
|
||||||
self.person.set_gender(RelLib.Person.MALE)
|
self.person.set_gender(RelLib.Person.MALE)
|
||||||
else:
|
elif matches[2][0] == "F":
|
||||||
self.person.set_gender(RelLib.Person.FEMALE)
|
self.person.set_gender(RelLib.Person.FEMALE)
|
||||||
|
else:
|
||||||
|
self.person.set_gender(RelLib.Person.UNKNOWN)
|
||||||
elif matches[1] in [ "BAPL", "ENDL", "SLGC" ]:
|
elif matches[1] in [ "BAPL", "ENDL", "SLGC" ]:
|
||||||
lds_ord = RelLib.LdsOrd()
|
lds_ord = RelLib.LdsOrd()
|
||||||
if matches[1] == "BAPL":
|
if matches[1] == "BAPL":
|
||||||
|
Reference in New Issue
Block a user