Dirk Meyer wrote:
> Dirk Meyer wrote:
>> Duncan Webb wrote:
>>> Hi dischi,
>>>> Hi,
>>>>
>>>> I changed the code in Freevo 1.x to use kaa.rpc2 instead of
>>>> kaa.rpc. Please test. If it works, I will move kaa.rpc2 to kaa.rpc in
>>>> kaa.base.
>>> It doesn't seem to work, in the recordserver log it says:
>> Well, because connecting takes some time. I forgot that you execute
>> stuff directly. When Freevo is running, it should work. For your test
>> case, add 'kaa.inprogress(rc.channel).wait()' after rc is created in
>> main. That should work. A different idea is to replace 
>> self.channel.status != kaa.rpc2.CONNECTED by
>> self.channel.status == kaa.rpc2.DISCONNECTED
>>
>> If it works, you have to do the same for the encoding server.
> 
> Ignore the last idea, changing it to DISCONNECTED will have side
> effects. The correct way is to wait using the inprogress.
> 
> I added it to svn, please test

Thanks for this but I'm afraid that it still doesn't work. Same command
different errors:

./freevo execute src/tv/record_client.py getfavoritesnow

server log
16:58:24,604 DEBUG    New connection <kaa.Socket fd=13>
16:58:24,633 DEBUG    IOChannel read data: channel=<socket._socketobject
object at 0xb5d64454> fd=13 len=72
16:58:24,635 DEBUG    Valid response received, remote authenticated.
16:58:24,642 DEBUG    Sent response to challenge from client.
16:58:24,750 DEBUG    IOChannel read data: channel=<socket._socketobject
object at 0xb5d64454> fd=13 len=0
16:58:24,751 DEBUG    IOChannel closed: channel=<kaa.Socket fd=13>,
immediate=True, fd=13
16:58:24,753 DEBUG    close socket for <kaa.rpc.Channel (server) None>

client log
16:58:24,614 INFO     create thread notifier pipe
16:58:24,622 DEBUG    IOChannel read data: channel=<socket._socketobject
object at 0xb68e4d14> fd=3 len=72
16:58:24,631 DEBUG    Got initial challenge from server, sending response.
16:58:24,645 DEBUG    IOChannel read data: channel=<socket._socketobject
object at 0xb68e4d14> fd=3 len=72
16:58:24,647 DEBUG    Valid response received, remote authenticated.
function='getfavoritesnow' args=[]
16:58:24,650 DEBUG    record_client.py (294): getFavoritesNow()
16:58:24,652 DEBUG    record_client.py (87):
_recordserver_rpc(cmd='getFavorites', args=(), kwargs={})
16:58:24,653 INFO     record_client.py (89): record server is down
0.004: result=(None, u'TV record server is not available')

Duncan


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to