delete_event_hook for extensions
Bug #595919 reported by
Mikkel Kamstrup Erlandsen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zeitgeist Framework |
Fix Released
|
Medium
|
Seif Lotfy |
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.
Related branches
lp:~zeitgeist/zeitgeist/delete-hooks
- Mikkel Kamstrup Erlandsen: Approve
-
Diff: 70 lines (+31/-0)3 files modified_zeitgeist/engine/extension.py (+12/-0)
_zeitgeist/engine/main.py (+3/-0)
test/engine-extension-test.py (+16/-0)
Changed in zeitgeist: | |
status: | Triaged → Fix Committed |
Changed in zeitgeist: | |
assignee: | nobody → Seif Lotfy (seif) |
status: | Fix Committed → Fix Released |
Changed in zeitgeist: | |
milestone: | 0.4.1 → 0.5.0 |
To post a comment you must log in.
2010/6/18 Mikkel Kamstrup Erlandsen <email address hidden>:
> 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.
+1, this should definitelly be available.
> The delete_event_hook() method
> should take an event_id as its sole argument.
Wouldn't a list of events be more useful?