zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #01147
[Bug 595919] Re: delete_event_hook for extensions
I proposed one event_id because the insert hook also only receives one
event.
The idea was simply as a notification mechanism, I am not sure it's a
good idea to allow extensions to bar events from deletion, although I
can't fully see the ramifications of this... We can't use the current
notification API because that would require a full dbus roundtrip (back
to the same process!).
I don't know if the hooks should be called before or after the
deletion... Any thoughts?
--
delete_event_hook for extensions
https://bugs.launchpad.net/bugs/595919
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
Status in Zeitgeist Framework: New
Bug description:
Right now zeitgeist extensions have no way of knowing when events are deleted. I propose adding a delete_event_hook() method on the Extension class that extensions can override. The delete_event_hook() method should take an event_id as its sole argument.
I need this functionality in the FTS extension.
Follow ups
References