Hello,
I’m looking for a way to add the ID of father, mother and spouse(s) to every person in the kinship report. That’s why it is not possible to see the relations between the persons in ascending/descending generations.
I hope my question is clear.
Thanks in advance
Hello and thanks for answering.
May be (I have no double cousin in my database). I would like to see which spouse is married with which children or who is parent of which cousin, and so on.
My idea is to add in the software “child of Ixxx” depending from “Grandchildren”, “Greatgrandchildren” and so on or under “Spouse of…” “Spouse of Ixxx”, with Ixxx like your example. But I cannot generate python-code.
I’m not a Python coder either. But what you want exists in the engine.
There are modules in the Relationship calculator and Narrator. But the documentation is written for experts in the Sphinx documentation system. So it takes lots of experimentation to get anywhere with it.
And then puzzling out how the developer of the Kinship Report designates whether the person in the report section is a spouse or a direct descendant. Because you indicated that you want different data for those relationship types.
I’m not making any progress. The add the GrampsID pull request was rejected because it failed the Lint and Black testing. And there were a bunch of errors reported.
Hello again,
although I cannot understand the problems, I thank you very much for trying to help me.
I have now found my own way with some data sharing between Ahnenblatt and gramps and libreoffice, in case there is not an easy way to create a new kindhip report. It may be that I am the one and only who wants the IDs.
Best option is to use Black as mentioned but if you don’t have it handy, you can find the issues Black is flagging in the Checks tab of the PR. Look for the red "X"s to find the error(s) and resolution(s) suggested by Black. The line numbers are a bit confusing - the ones shown in the image are the line numbers in the log, not the line numbers in the source. The diff shows the line number in the source file, e.g. line 317, and the actual line is 5 lines after that, so line 322, etc.
Hello from Germany.
I think there is another error in the kinship report:
Brother-in-law/sister-in-law are only generated by my own sibling’s husband/wife and not my spouse’s brother/sister. If there are no siblings, no brothers-in-law are generated. The same applies to the husband’s/wife’s brother-in-law or sister-in-law, or “Schwippschwager” in German.
Thanks for the direction. Although I cloned the built-in report (renamed .py file and the registration ) to be an add-on. So it was
The first time I tried black, I had to install the black package:
black /home/districtsupport/.gramps/gramps52/plugins/KinshipReport2/kinshipreport2.py
bash: black: command not found...
Install package 'black' to provide command 'black'? [N/y] y
Then after installing, `black` did changes with no feedback. So I actually wanted to see the difference, not change the file:
black --diff /home/districtsupport/.gramps/gramps52/plugins/KinshipReport2/kinshipreport2.py
It is still failing the Lint test on GitHub though.
Is the version of Black you’re using locally version 24.1 or better? If not, the formatting rules may be different. GitHub Actions installs and runs version 24.4.2 as can be seen in the log: