Re: [Zeitgeist] [Bug 595919] Re: delete_event_hook for extensions

2010-06-18 Thread Siegfried Gevatter
2010/6/18 Seif Lotfy : > Maybe a possibility is to add to hooks delete_event_hook and > delete_event_hook_after +1, so that if another extension decides a particular thing shouldn't be deleted FTS's hook won't be called. -- delete_event_hook for extensions https://bugs.launchpad.net/bugs/595919 Y

Re: [Zeitgeist] [Bug 595919] Re: delete_event_hook for extensions

2010-06-18 Thread Seif Lotfy
On Fri, Jun 18, 2010 at 9:47 PM, Siegfried Gevatter wrote: > I'd say: Call the hook before the deletion with the full event list > (or event ids only, not sure *) and have them return true or false to > indicate whether the event should be deleted or the operation aborted. > > This may serve to cr

Re: [Zeitgeist] [Bug 595919] Re: delete_event_hook for extensions

2010-06-18 Thread Siegfried Gevatter
I'd say: Call the hook before the deletion with the full event list (or event ids only, not sure *) and have them return true or false to indicate whether the event should be deleted or the operation aborted. This may serve to create an evil extension which won't let you delete anything? Well, yes