[Twisted-Python] twisted cred: why does avatarId need to be a str?

2010-09-07 Thread Laurens Van Houtven
Hi, As some of you probably know I'm trying to beat OAuth2.0 into submission. I'm using twisted.cred to do it. The restriction that avatarIds need to be strs is somewhat getting in my way, and I'm not sure if the correct way to do it is: 1) ignore the restriction (credentials types are so specif

Re: [Twisted-Python] connection to many servers

2010-09-07 Thread dbcourriel-4all
Thanks a lot for your answer.   regards, --- En date de : Mar 7.9.10, exar...@twistedmatrix.com a écrit : De: exar...@twistedmatrix.com Objet: Re: [Twisted-Python] connection to many servers À: "Twisted general discussion" Date: Mardi 7 septembre 2010, 14h52 On 09:40 am, dbcourriel-4...@y

Re: [Twisted-Python] connection to many servers

2010-09-07 Thread exarkun
On 09:40 am, dbcourriel-4...@yahoo.fr wrote: Hi, i need to connect to many servers so i've found an example that shows how to connect to many servers see the source below. But i need to get the way to retrieve each server in order to see the satus of the connection, to send to it a message. Is

[Twisted-Python] connection to many servers

2010-09-07 Thread dbcourriel-4all
Hi, i need to connect to many servers so i've found an example that shows how to connect to many servers see the source below. But i need to get the way to retrieve each server in order to see the satus of the connection, to send to it a message. Is there an connection object with sendData acti

[Twisted-Python] connection to many servers

2010-09-07 Thread dbcourriel-4all
Hi,   i need to connect (tcp) to many servers. so i wrote   def connectAll(addresses): logger.info("connect all") servers = [svcConnect(address) for address in addresses] defer.DeferredList(servers, consumeErrors=True).addCallback(handleAllResults, addresses) reactor.run( )