Type Cleanup Tool Issue: missing Attributes from Forms

I have been looking the Attributes created by using custom Forms
Two of which are there when you look at the Form or indeed look at Forms already completed but these do not appear when you run the Type Cleanup Tool They are “Sex” and “Gender”
Are there Attribute names that are already reserved in GRAMPS and therefore should not be used in Forms?
Is there any logical reason why Type Cleanup cannot see these?
Finally is it likely there are other Attributes that are not found?
phil

GRAMPS: 5.1.6
Python: 3.10.12 (main, Mar 22 2024, 16:50:05) [G…
BSDDB: 6.2.9 (5, 3, 28)
sqlite: 3.37.2 (2.6.0)
LANG: en_GB.UTF-8
OS: Linux
Distribution: 6.5.0-45-generic

The “official” Attribute types defined in the code can be found here…

\gramps\gen\lib\attrtype.py

Sex and Gender are not in the list so would be Custom types.

I just did a test.

I added Sex and Gender as attributes to an Event. They showed up just fine under Event attributes.

After deleting those records, I added the same attributes to an Event’s person reference (by the Role drop-down).

Type Cleanup found the Gender attribute under Person attributes but did not find the Sex attribute attached to the same record. The difference… I already had a Gender attribute attached directly as a Person attribute.

Bottom line, this is a bug where the tool does not seem to be scanning for any new custom types in a person’s event reference.

Thanks Dave for that at least confirming I am not losing the marbles totally

One issue I have with this in my case neither Sex nor Gender are new
having been created for the Forms going back many years.

I am going to have to compare all my custom types with a) what cleanup
tool finds and b)the attrtype.py file finally c) what I can see in the
database.
As I will be away for a long weekend it will be next week before I can
look at this.

The one positive thing I have had from this exercise is that I have
identified a whole rash of data errors (not GRAMPS fault) which I must
work out a plan to address.

In the meantime if anyone is planning to use this tool please do it on a
non current copy of your database and a copy of your custom.xml file
just to see what happens before going on your current active copies

Phil

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.