Question about DB update callbacks

I am currently trying to fix a bug in the TimelinePedigreeView add-on related to it not clearing caches.

The fix should be quite trivial, except that I am stuck trying to understand one aspect of the db connection callbacks.

I get the “person-update” callback if I create or delete an event for a person but if, for example, I simply edit a date of birth then I do not seem to get any callback.

In the People or Relationships view then the new date is there, but in the TPV chart it is still using the cached values.

Any suggestions? The wiki page is not particularly detailed on the topic and I have become lost trying to find it in the source.

The Person object is not updated unless an Event is added or removed from that Object. So no monitored signal is emitted in that case.

You will need to connect to the event-update if you want a refresh signaled by the attributes of an Event being changed.

1 Like

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