Jason Tackaberry wrote:
> On Sat, 2008-02-16 at 12:20 +0100, Dirk Meyer wrote:
>>> ~  File "/usr/lib/python2.4/site-packages/kaa/notifier/async.py", line
>>> 284, in get_result
>>> ~    raise type, value, tb
>>> AttributeError: 'object' object has no attribute 'title'
>> That looks like an error on the other side. If there is an error on
>> the rpc server side, the exception will be raised on client side. The
>> traceback got lost somehow, but 'title' is not used in kaa.

I am calling the same method in the recordserver, the only difference is
how it is being called. I am using a callback, a wait and a coroutine,
with a final wait.

The first two work but using the coroutine failed.

Other routines work with the coroutine, the only difference that I can
see is that the findNextProgram returns an object instance whereas ping
and returns a boolean and a tuple respectively. There is a __str__ and a
__repr__ function of a program item

Here is how the functions have been called, from __main__:

     if function == "pingco":
         r = rc.pingCo().wait()
         print 'pingCo=%r' % (r,)

     if function == "findnextprogramco":
         r = rc.findNextProgramCo().wait()
         print 'findNextProgramCo=%r' % (r,)

> 
> It's not a remote exception, it's a locally generated exception whose
> traceback has been lost because it would have needed to be stored.  I
> will see what I can do about this.

I've updated the kaa, restarted the recordserver and get this:

# freevo execute record_client.py "pingco"
0.000: pingCo started
0.020: pingCo.inprogress=<kaa.notifier.async.InProgress object at
0xb77f02cc>
0.044: pingCo.inprogress=<kaa.notifier.async.InProgress object at
0xb77f02cc>
pingCo=True

# freevo execute record_client.py findnextprogramco
0.000: findNextProgramCo(isrecording=False) started
0.019: findNextProgramCo.inprogress=<kaa.notifier.async.InProgress
object at 0xb77bb30c>
0.048: findNextProgramCo.inprogress=<kaa.notifier.async.InProgress
object at 0xb77bb30c>
Traceback (most recent call last):
   File "record_client.py", line 547, in ?
     r = rc.findNextProgramCo().wait()
   File "/usr/lib/python2.4/site-packages/kaa/notifier/async.py", line
395, in wait
     return self.get_result()
   File "/usr/lib/python2.4/site-packages/kaa/notifier/async.py", line
350, in get_result
     raise exc_value
kaa.notifier.async.AsyncException: 'object' object has no attribute 'title'

It should return something like this, as this is returned from the
callback version:
# freevo execute record_client.py findnextprogram
handler.result=<tv.epg_types.TvProgram instance at 0xb6dc12cc>

Duncan

-------------------------------------------------------------------------
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