# Event Reference Editor (default event guessing)

**URL:** <https://gramps.discourse.group/t/event-reference-editor-default-event-guessing/7629>\
**Category:** Help\
**Created:** [May 7, 2025, 9:19pm UTC](https://gramps.discourse.group/t/event-reference-editor-default-event-guessing/7629 "2025-05-07T21:19:19Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [May 7, 2025, 9:19pm UTC](https://gramps.discourse.group/t/event-reference-editor-default-event-guessing/7629/1 "2025-05-07T21:19:19Z")

</div>

Running GRAMPS 5.2.4

In the above, 2 issues:

1. Event Type: comes up Birth, Death order etc (would like to reorder this.)
2. Description: is automatically filled with text want to stop this

Could someone advise where these functions are set. So I can have a play.  
phul

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [May 7, 2025, 9:20pm UTC](https://gramps.discourse.group/t/event-reference-editor-default-event-guessing/7629/2 "2025-05-07T21:20:10Z")

</div>

Apologies for the typos it is late here is my only excuse  
phil

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [May 8, 2025, 1:13am UTC](https://gramps.discourse.group/t/event-reference-editor-default-event-guessing/7629/3 "2025-05-08T01:13:18Z")

</div>

have you looked at:

for Persons:

> <https://github.com/gramps-project/gramps/blob/8aeb6b28fd4a4be19635966f9988f5a5488212e7/gramps/gui/editors/displaytabs/personeventembedlist.py#L114-L119>

and for Families:

> <https://github.com/gramps-project/gramps/blob/8aeb6b28fd4a4be19635966f9988f5a5488212e7/gramps/gui/editors/displaytabs/eventembedlist.py#L249-L253>

The EventType list is at:

> <https://github.com/gramps-project/gramps/blob/8aeb6b28fd4a4be19635966f9988f5a5488212e7/gramps/gen/lib/eventtype.py#L49-L99>

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [May 8, 2025, 8:25am UTC](https://gramps.discourse.group/t/event-reference-editor-default-event-guessing/7629/4 "2025-05-08T08:25:04Z")

</div>

An experiment adding a BAPTISM event type to the `default_types` of `personeventembedlist.py` expanded the set of pre-fill event types.

However, I do not see any pre-fills of the event’s Descriptions. When does that happen for you?

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [May 8, 2025, 9:22am UTC](https://gramps.discourse.group/t/event-reference-editor-default-event-guessing/7629/5 "2025-05-08T09:22:00Z")

</div>

Adding an event to a person description takes the form of “Death of  
Smith, John Thomas” wondering whether function was removed at some  
point and I am just seeing it now on entries I have made previous;y.  
phil

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [May 8, 2025, 9:30am UTC](https://gramps.discourse.group/t/event-reference-editor-default-event-guessing/7629/6 "2025-05-08T09:30:46Z")

</div>

I once experimented with the [Extract Event Description](https://www.gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Tools#Extract_Event_Description) tool and have been regretting the waste of storage ever since.

_(The tool is misnamed. It does not ‘ **extract** ’, it **generates/adds** a description in a fixed format.  
Reports are better because some do this dynamically in both Name Display Format and language.)_

Perhaps those tool-generated `{event type} of {Surname}, {Given name}` descriptions are what is annoying you too?

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [May 8, 2025, 2:45pm UTC](https://gramps.discourse.group/t/event-reference-editor-default-event-guessing/7629/7 "2025-05-08T14:45:15Z")

</div>

> [@emyoulation](#):
>
> the [Extract Event Description](https://www.gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Tools#Extract_Event_Description) tool

That is precisely what the problem was.

After trying it I removed the Addon and of course over time forgot that I had done it

yes very much a waste of storage. A drop down list of Custom Descriptions would be more useful here. Example “DOD (Date of Death) from Probate” is one I use a lot.

phil

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [May 8, 2025, 6:31pm UTC](https://gramps.discourse.group/t/event-reference-editor-default-event-guessing/7629/8 "2025-05-08T18:31:03Z")

</div>

Thanks Brian  
`personeventembedlist.py` now reads

```
 def default_types(self):
     return [
         EventType(EventType.BIRTH),
         EventType(EventType.BAPTISM),
         EventType(EventType.DEATH),
         EventType(EventType.BURIAL),
         EventType(EventType.PROBATE),
     ]

```

Not

```python
     def default_types(self):
         return [
             EventType(EventType.BIRTH),
             EventType(EventType.DEATH),
             EventType(EventType.BURIAL),
         ]

```

Works for me  
phil

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [May 8, 2025, 7:03pm UTC](https://gramps.discourse.group/t/event-reference-editor-default-event-guessing/7629/9 "2025-05-08T19:03:19Z")

</div>

Remember to add something to your ‘placeholder’ Person that has all your Gramps customizations that are done infrequently. And all your workflow documentation.

Maybe point to this thread?

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [May 8, 2025, 8:56pm UTC](https://gramps.discourse.group/t/event-reference-editor-default-event-guessing/7629/10 "2025-05-08T20:56:53Z")

</div>

Will do Brian

I also keep the modified/original files  
Stored in a folder structure

Gramps\_5.2.4\_Programs Working  
usr\_lib\_python3\_dist-packages\_gramps\_gui\_editors\_displaytabs  
personeventembedlist

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [June 7, 2025, 8:57pm UTC](https://gramps.discourse.group/t/event-reference-editor-default-event-guessing/7629/11 "2025-06-07T20:57:20Z")

</div>

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