Re: [Freevo-devel] kaa.notifier Background Task

2008-01-18 Thread Jason Tackaberry
On Fri, 2008-01-18 at 23:00 +0100, Dirk Meyer wrote: > I added some doc for this. This task should be done in two steps. > First make sure yield_execution always returns an InProgress object > and second add the new Python 2.5 code. I did some changes and added > some doc. I will stop here to discu

Re: [Freevo-devel] kaa.notifier Background Task

2008-01-18 Thread Dirk Meyer
Dirk Meyer wrote: > 6. Add support for foo = yield something in kaa.base. I added some doc for this. This task should be done in two steps. First make sure yield_execution always returns an InProgress object and second add the new Python 2.5 code. I did some changes and added some doc. I will stop

Re: [Freevo-devel] kaa.notifier Background Task

2008-01-18 Thread Dirk Meyer
Dirk Meyer wrote: > 3. Rename Thread to ThreadCallback and rename start to __call__. A new >Thread class will inherit from ThreadCallback and add a deprected >warning and this functions also has a start function with a >deprected warning. Done without the Thread wrapper. > 4. Adjust a

Re: [Freevo-devel] kaa.notifier Background Task

2008-01-18 Thread Dirk Meyer
Jason Tackaberry wrote: > See the attached, which implements it the way I think it should be > (roughly). I think this is an elegant implementation. I didn't inherit > ThreadCallback from your BackgroundTask class because I couldn't get it > to work. You'll see what I mean when I try to make it

Re: [Freevo-devel] kaa.notifier Background Task

2008-01-18 Thread Dirk Meyer
Jason Tackaberry wrote: > See the attached, which implements it the way I think it should be > (roughly). I think this is an elegant implementation. I didn't inherit > ThreadCallback from your BackgroundTask class because I couldn't get it > to work. You'll see what I mean when I try to make it

Re: [Freevo-devel] kaa.notifier Background Task

2008-01-18 Thread Dirk Meyer
Jason Tackaberry wrote: > On 2008-01-18 09:22, Dirk Meyer wrote: >> One problem with BackgroundTask is that it has signals for completed >> and exception and the InProgress objects connects to these >> signals. That does not work with the idea that you can call the >> callback more than once. > > A

Re: [Freevo-devel] kaa.notifier Background Task

2008-01-18 Thread Jason Tackaberry
On 2008-01-18 09:22, Dirk Meyer wrote: > One problem with BackgroundTask is that it has signals for completed > and exception and the InProgress objects connects to these > signals. That does not work with the idea that you can call the > callback more than once. Another was that the decorated fun

Re: [Freevo-devel] kaa.notifier Background Task

2008-01-18 Thread Dirk Meyer
Dirk Meyer wrote: > 1. Adjust all kaa modules and freevo to the new notifier namespace >stuff. The deprecated warnings in kaa.base will be kept but should >not be visible for any kaa modules and Freevo 2.0. But since we >break the API, they will be removed before the next release. Done