# My first gramplet - "Historical Context" for gramps 5.2

**URL:** <https://gramps.discourse.group/t/my-first-gramplet-historical-context-for-gramps-5-2/6348>\
**Category:** Development\
**Tags:** third-party-addon, timeline\
**Created:** [October 30, 2024, 10:06am UTC](https://gramps.discourse.group/t/my-first-gramplet-historical-context-for-gramps-5-2/6348 "2024-10-30T10:06:25Z")\
**Posts on this page:** 9\
**Page:** 8

<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:** [January 14, 2025, 10:56pm UTC](https://gramps.discourse.group/t/my-first-gramplet-historical-context-for-gramps-5-2/6348/142 "2025-01-14T22:56:37Z")

</div>

A new PR improving the **ProbabyAlive** utility was just committed to the master branch.

You @kmikkels and @ztlxltl might want to review the changes in the [PR 1790](https://github.com/gramps-project/gramps/pull/1790) and [MantisBT 13443](https://gramps-project.org/bugs/view.php?id=13443) issue to determine if anything changes for your addons.

I have to find the right place to amend 13443 to indicate that it adds **Probate** Events to the Death fallbacks.

---

<div class="post-metadata">

**Author:** ![kmikkels](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/kmikkels/32/2317_2.png) [@kmikkels](https://gramps.discourse.group/u/kmikkels)\
**Post date:** [January 15, 2025, 9:00am UTC](https://gramps.discourse.group/t/my-first-gramplet-historical-context-for-gramps-5-2/6348/143 "2025-01-15T09:00:51Z")

</div>

Thanks @emyoulation  
As far as I can tell this change only improved the gramplet, because it improves the probably alive function.

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [January 15, 2025, 5:08pm UTC](https://gramps.discourse.group/t/my-first-gramplet-historical-context-for-gramps-5-2/6348/144 "2025-01-15T17:08:31Z")

</div>

@emyoulation  
Thanks for pointing this out. Currently I only use it for determining the color of the boxes/avatar and the ribbon. I haven’t implemented the suggested use for the timeline.  
I hope the new function is not significantly slower, as calling `probably_alive()` is definitely expensive when building the visualization with a few hundred people.

I’m not familiar with the process of how addons should adapt to updates, so maybe my question is a bit naive:  
Is there some docs on the API changes for each (non-maintenance) update or what is the best practice when preparing the addon for the next update?

---

<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:** [January 15, 2025, 6:19pm UTC](https://gramps.discourse.group/t/my-first-gramplet-historical-context-for-gramps-5-2/6348/145 "2025-01-15T18:19:40Z")

</div>

> [@ztlxltl](#):
>
> I’m not familiar with the process of how addons should adapt to updates, so maybe my question is a bit naive:  
> Is there some docs on the API changes for each (non-maintenance) update or what is the best practice when preparing the addon for the next update?

This something that has had lively discussion lately. The developer who used to wrangle addon updates stepped back due to the birth of a new grandchild. Addon update approvals stalled completely.

We made [a call for volunteers on the Developer Mailing List](https://sourceforge.net/p/gramps/mailman/gramps-devel/thread/1911608295.600522.1717280605960%40mail.yahoo.com/#msg58778724) in June 2024 and had 2 but no one to bring them up to speed. Then, when nothing was moving, another developer volunteered and was a self-starter.

Things are moving again but the workflow is not locked down. The recent HistContext gramplet by @kmikkels is the first attempt through the re-lined pipeline. He has willingly served as guinea pig and documenter of adding language support and publishing through the ‘official’ project.

The Isotammi Group, GlopGlop and JMichault run their own [Other Projects](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Navigation#Other_Projects) but don’t give much feedback when there are problems. They try their own workarounds and move on when something works

---

<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:** [March 8, 2025, 10:31pm UTC](https://gramps.discourse.group/t/my-first-gramplet-historical-context-for-gramps-5-2/6348/147 "2025-03-08T22:31:27Z")

</div>



---

<div class="post-metadata">

**Author:** ![PLegoux](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/plegoux/32/413_2.png) [@PLegoux](https://gramps.discourse.group/u/PLegoux)\
**Post date:** [March 5, 2025, 10:44am UTC](https://gramps.discourse.group/t/my-first-gramplet-historical-context-for-gramps-5-2/6348/148 "2025-03-05T10:44:26Z")

</div>

Continuation of [My first gramplet - “Historical Context” for gramps 5.2](https://gramps.discourse.group/t/my-first-gramplet-historical-context-for-gramps-5-2/6348) topic.

Would it be possible to add the reading of an attribute of the person dedicated to the gramplet in which would be indicated the files that we want to read for this person in addition to those selected in the gramplet settings?

This would allow for example to associate with certain people purely local events that only concern some people and not all persons in the database.

We could have an attribute of this kind:

- Type: Historical Context
- Value: belgium, ww1

When finding this attribute and these values the gramplet ​​would read the information, in addition to the checked files, those of the files `belgium_v1_0.txt` and `ww1_v1_0.txt`.

(CC @kmikkels)

---

<div class="post-metadata">

**Author:** ![kmikkels](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/kmikkels/32/2317_2.png) [@kmikkels](https://gramps.discourse.group/u/kmikkels)\
**Post date:** [March 8, 2025, 5:58pm UTC](https://gramps.discourse.group/t/my-first-gramplet-historical-context-for-gramps-5-2/6348/149 "2025-03-08T17:58:37Z")

</div>

Not sure, but i will take a look

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [April 25, 2025, 2:46pm UTC](https://gramps.discourse.group/t/my-first-gramplet-historical-context-for-gramps-5-2/6348/150 "2025-04-25T14:46:47Z")

</div>

Hello @kmikkels,  
I think your gramplet has big perspectives with AI integration.

 ![2025-04-25_17-39-41](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/2/2c1b87f891e081f6549df02679570327d58216f8.jpeg)  
Gramplet can send to AI dates ranges, region or country and current list of events according to the same date range. And then it will receive suggests which are missing in the list which could be added manually to the text files.

I can give you my ai python-classes for this if you want. I already have something very similar [A new WebSearch gramplet is ready - #276 by Urchello](https://gramps.discourse.group/t/a-new-websearch-gramplet-is-ready/7188/276)

---

<div class="post-metadata">

**Author:** ![kmikkels](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/kmikkels/32/2317_2.png) [@kmikkels](https://gramps.discourse.group/u/kmikkels)\
**Post date:** [May 11, 2025, 3:04pm UTC](https://gramps.discourse.group/t/my-first-gramplet-historical-context-for-gramps-5-2/6348/151 "2025-05-11T15:04:34Z")

</div>

Sounds very interesting.  
Currently I am strugling with getting python to work the way I want.  
Trying to use glade as a popup to my gramplet, but I do not find it easy.  
I will take a look at the AI later.

[Previous page](https://gramps.discourse.group/t/my-first-gramplet-historical-context-for-gramps-5-2/6348.md?page=7)
