[Twisted-Python] Passing revieved rata and erroring out bad passowrds
Andy at newworldelectric.com
Tue Oct 28 15:36:13 EDT 2008
For the password problem, I think what you want to do is raise an
exception, which will in turn cause your defereds to call their error
backs. In the error back you can handle the particular error however
you need to. That's probably something you need to either setup in
the getpass module, alternatively, that may be setup already and just
waiting for you to addErrback() on it.
- Andy Fundinger
On Tue, Oct 28, 2008 at 11:19 AM, Jean-Paul Calderone
<exarkun at divmod.com> wrote:
> On Tue, 28 Oct 2008 10:42:49 -0400 (EDT), Brian Levin <b.levin at hvcc.edu>
>> I apologizes if these are simple questions. I am a complete newb when it
>> comes to python and twisted. I am trying to pass a command via ssh to a
>> server. I am having 2 problems. I am hoping that someone can help me. I
>> have been unable to find answers in "the google".
>> Problem 2: A bad password or username causes and infinite loop. I need
>> to find a way to cause an error or return a false value when the password or
>> username is bad.
> I'm not sure about this one.
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
Second Life Name: Ciemaar Flintoff
Watch out for the invisible man.
More information about the Twisted-Python