Re: Kinship report not showing half relationships.

George Wilmes <[email protected]>
Newsgroups gmane.comp.genealogy.gramps.user
Message-ID <CADWiNGwA6hdA6OcGuvGYATJCxdU91jU5GLWeVtX4rq=EQJRQMg@mail.gmail.com>
I had a different problem, with some step-cousins not even showing up, and
so I changed these lines in the report's get_parent_handles() function:

# instead of just the "main" parents, get all parents
#       family_handle = person.get_main_parents_family_handle()
#       if family_handle:
        family_handles = person.get_parent_family_handle_list()
        for family_handle in family_handles:

I agree it would be nice if the report could distinguish half- and step-
relations. So I added this code near the end of the write_person()
function, just before the line "self.doc.end_paragraph()":

# write the actual relationship description if it contains "half" or "step"
        relationship = self.rel_calc.get_one_relationship(self.database,
                                                          self.orig_person,
                                                          person)
        if "half" in relationship or "step" in relationship:
            self.doc.write_text(relationship)

I hope to make it look better as I learn more Python. Also, a proper
solution would need to consider translation. I haven't yet tested it
thoroughly, for example looking for persons who related in more than one
way to the center person; maybe this added relationship description might
be incorrect in some cases, I don't know.


On Mon, Mar 6, 2023 at 9:35 AM Martin H. Watson <[email protected]>
wrote:

> The report lists my two half first cousins as being first cousins.
>
> After my father was born, his parents split and remarried and had
> children and grandchildren.  Two of these grandchildren are in contact
> with me.
>
> Is there a way to get the kinship report to show half relationships
> separately from full ones?
>
> Martin
>
>
>
> --
> Gramps-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gramps-users
> https://gramps-project.org
-------------- next part --------------
An HTML attachment was scrubbed...

-- 
Gramps-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.