Re: [Pytables-users] Hooks into Events

2010-12-07 Thread Anthony Scopatz
Hello Francesc, Yes, the do/undo machinery is already capturing this (among other events). If you are only interested in triggering an action on node creation, Actually, this was fairly easy to expose. Attached is a patch that allows the user to submit a 'hook' function that then gets

Re: [Pytables-users] Hooks into Events

2010-12-07 Thread Francesc Alted
A Tuesday 07 December 2010 17:09:44 Anthony Scopatz escrigué: Hello Francesc, Yes, the do/undo machinery is already capturing this (among other events). If you are only interested in triggering an action on node creation, Actually, this was fairly easy to expose. Attached is a patch

Re: [Pytables-users] Hooks into Events

2010-12-03 Thread Francesc Alted
A Friday 03 December 2010 18:37:43 Anthony Scopatz escrigué: Hello All, I was wondering if there was a pytables way to fire an event whenever something happens to a tables.File object. For example, I would like to be able to be informed whenever a createArray(), createGroup(), etc are