Parents of a non-birth child — a Gramps filter rule

A custom person filter rule for Gramps that matches people who are a parent in a family where a child is recorded with a relationship other than "Birth" to them — adoptive parents, foster parents, step-parents, sponsors or a custom type.

Biological parents are not included. In Gramps the child relationship type is stored separately for the father and the mother on each child reference, so the rule only looks at the person's own role:

Situation Child's relationship Matches
Foster family Foster to both parents both foster parents
Step family Birth to mother, Stepchild to father only the stepfather
Birth family Birth to both nobody (through that child)

It is the companion of "People recorded as a non-birth child" (HasNonBirthChildRelation), which lists the children themselves.

Requirements

Installation

  1. Close Gramps.

  2. Extract the downloaded ZIP archive.

  3. Copy or extract the project folder into your Gramps user plugin folder. Keep the complete folder structure unchanged, including any locale folder included with the project.

    The user plugin folder is normally located here:

    Replace <version> with the Gramps version folder used on your system.

  4. Start Gramps again.

  5. Check that the installed filter, rule, gramplet or tool is available where described in the project documentation.

If the project does not appear or fails to load, check Help → Plugin Manager for an error message.

Removing the test version

  1. Close Gramps.
  2. Delete the project folder that you added to the Gramps user plugin folder.
  3. Start Gramps again.

Because the project was installed only in the user plugin folder, removing that folder removes the test installation without changing the original Gramps program files.

Usage

  1. In a person view, open Edit → Person Filter Editor.
  2. Add a filter and click Add to add a rule.
  3. Under Family filters, choose "Parents of a non-birth child".
  4. In the Child relationship type drop-down pick:
  5. Click OK.

Notes

License

GNU General Public License, version 2 or later — same as Gramps. See LICENSE.

Translations (i18n)

This addon ships with a Danish translation and is ready for more languages. Layout:

<addon folder>/ *.py *.gpr.py po/ template.pot # all translatable strings (source) da-local.po # Danish translation (source) locale/ da/LC_MESSAGES/addon.mo # compiled Danish catalog (used at runtime)

Gramps loads locale/<lang>/LC_MESSAGES/addon.mo automatically when the interface is set to that language, and falls back to English otherwise. The .mo filename must be exactly addon.mo.

To add another language, e.g. German:

  1. Copy po/template.pot to po/de.po and translate each msgstr.
  2. Compile it to locale/de/LC_MESSAGES/addon.mo. With GNU gettext: msgfmt po/de.po -o locale/de/LC_MESSAGES/addon.mo (or use the Python polib package: pofile('po/de.po').save_as_mofile(...)).
  3. Restart Gramps.

Only strings unique to this addon are translated here; standard Gramps terms (category names, "ID:", the relationship-type names in the drop-down, etc.) come from Gramps' own translations automatically.

PROJECT WEBSITE

https://myown-project.dk/