* src/plugins/GraphViz.py (dump_person): Correctly test for birth

relations.


svn: r4900
This commit is contained in:
Alex Roitman 2005-07-03 21:12:43 +00:00
parent 3469687010
commit 2bdf0bb220
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-07-03 Alex Roitman <shura@gramps-project.org>
* src/plugins/GraphViz.py (dump_person): Correctly test for birth
relations.
2005-07-03 Eero Tamminen <eerot@sf> 2005-07-03 Eero Tamminen <eerot@sf>
* src/po/fi.po: Updated translated to latest template * src/po/fi.po: Updated translated to latest template

View File

@ -48,6 +48,7 @@ import Report
import ReportOptions import ReportOptions
import GenericFilter import GenericFilter
import const import const
import RelLib
from BaseDoc import PAPER_LANDSCAPE from BaseDoc import PAPER_LANDSCAPE
from latin_utf8 import utf8_to_latin from latin_utf8 import utf8_to_latin
from QuestionDialog import ErrorDialog from QuestionDialog import ErrorDialog
@ -233,8 +234,8 @@ class GraphViz:
family = self.database.get_family_from_handle(family_handle) family = self.database.get_family_from_handle(family_handle)
father_handle = family.get_father_handle() father_handle = family.get_father_handle()
mother_handle = family.get_mother_handle() mother_handle = family.get_mother_handle()
fadopted = frel != _("Birth") fadopted = frel != RelLib.Person.CHILD_REL_BIRTH
madopted = mrel != _("Birth") madopted = mrel != RelLib.Person.CHILD_REL_BIRTH
famid = family.get_gramps_id().replace('-','_') famid = family.get_gramps_id().replace('-','_')
if (self.show_families and if (self.show_families and
(father_handle and person_dict.has_key(father_handle) or (father_handle and person_dict.has_key(father_handle) or