-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dirk Meyer wrote:
| Hi,
|
| Jason and I broke the kaa.notifier API again. We renamed some stuff
| and changed some parameter. Sorry about that, but the new API looks
| much better now and I don't think we will break anything in the near
| future. As a side-effect, the Freevo 1.8 trunk may be broken now. But
| I guess, it does not affect 1.8. The Freevo 2.0 trunk is already
| updated.
|
| Here the list of changes since the last kaa.base release. You can find
| the complete API change history in API_CHANGES.txt.
|
| 1. MainThreadCallback.set_async() is removed.  Calling a
|    MainThreadCallback will return an InProgress object, and the
|    new approach now is to wait() on this InProgress.
|
| 2. Several decorators renamed:
|       @kaa.execute_in_timer  -->  @kaa.timed
|       @kaa.execute_in_thread  -->  @kaa.threaded
|       @kaa.execute_in_mainloop  --> @kaa.threaded(kaa.MAINTHREAD)
|       @kaa.yield_execution  -->  @kaa.coroutine
|
|    @kaa.timed also changed the parameter order and name. It is now
|    interval, timer (default Timer) and policy (default
|    POLICY_RESTART).
|
| 3. SocketDispatcher and WeakSocketDispatcher are renamed to IOMonitor
|    and WeakIOMonitor.

The other problem that I'm having is that coroutines don't seem to work,
may be a Python-2.4 or a Duncan thing, here is the code in record_client:

@kaa.coroutine()
def getNextProgramStart(self):
~  """ """
~  global nextstart
~  print self.timeit()+': getNextProgramStart begin'
~  progress = self.recordserver_rpc('updateFavoritesSchedule')
~  print self.timeit()+': getNextProgramStart.progress=%r' % progress
~  yield progress
~  print self.timeit()+': getNextProgramStart.progress=%r' % progress
~  result = progress.get_result()
~  print self.timeit()+': getNextProgramme.result=%r' % result
~  progress = self.recordserver_rpc('findNextProgram')
~  print self.timeit()+': getNextProgramStart.progress=%r' % progress
~  yield progress
~  print self.timeit()+': getNextProgramStart.progress=%r' % progress
~  nextstart = progress.get_result()
~  print self.timeit()+': getNextProgramme.nextstart=%r' % nextstart

What happens is:
freevo execute src/tv/record_client.py getNextProgramStart
xml_rpc_server at 'http://localhost:18001/'
06:20: getNextProgramStart begin
06:20: getNextProgramStart.progress=<kaa.notifier.async.InProgress
object at 0xb6eea24c>

and nothing else.

Duncan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHtINUNi6l+Xvys44RApDWAJsEiEpnOB7Bx9QgjhQlTnvT2p+lCwCfelpE
yDw1rzF9dinFDqKb/bIBmmw=
=PaPY
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to