[Twisted-Python] t.n.c.lookupAddress returns DNSNameError for hostnames w/ no A record

2013-04-01 Thread byr sa
Hi all, I saw in previous posts that DNSNameError signifies an 'NXDOMAIN' status and DNSServerError signifies 'SERVFAIL'. However, I am getting a DNSNameError from twisted.names.client.lookupAddress() when I query a hostname that has no A records, but *does have* other records (NS, SOA, etc). An

Re: [Twisted-Python] twisted.cred interface deficiences

2013-04-01 Thread Shell
It actually might be the appropriate thing already. There's a couple of possible reasons for renaming; one is that the password might not be hashed but the credentials object wants to insert additional logic (exarkun's statement in IRC) anyway, but technically that's just hashing using the identity

Re: [Twisted-Python] twisted.cred interface deficiences

2013-04-01 Thread Laurens Van Houtven
Why does IUsernameHashedPassword have to be renamed? It sounds like it's the appropriate thing already. On Mon, Apr 1, 2013 at 10:55 PM, Shell wrote: > The twisted.cred.IUsernamePassword interface declares: > > * IUsernamePassword.username - "The username associated with these > credentials." >

[Twisted-Python] twisted.cred interface deficiences

2013-04-01 Thread Shell
The twisted.cred.IUsernamePassword interface declares: * IUsernamePassword.username - "The username associated with these credentials." * IUsernamePassword.password - "The password associated with these credentials." * IUsernamePassword.checkPassword(password) - "Validate these credentials against

Re: [Twisted-Python] How to determine whether transport.write() succeed?

2013-04-01 Thread Glyph
On Mar 31, 2013, at 6:09 PM, Todong Ma wrote: > I wrote a simple client and server to get system information (e.g. cpu, > memory, etc.) > Client send 'cpu' to the server, then server will return cpu's information to > client. > > Now client send multiple commands to server one time, e.g. cpu,