Quote:
Originally Posted by kovidgoyal
Use a timer an keep polling till you have the new ids.
|
This is not a good solution, because the user may cancel the iaction, and we never will get new ids.
Quote:
Originally Posted by kovidgoyal
Or you can be sophisticated and monkey patch the callback function on the iaction object so that your callback is called instead. Just remeber to retore the original function after you are done.
|
I had no idea about what a monkey patch was. But google is my friend, so I search, found... and it works!
I monkey patch the "_files_added" function at the iaction to make its work, and then to call my own function to get the ids. And works OK.
Thank you again for your help, kovidgoyal, you're the king!