[Twisted-Python] ftp client question

Thomas Jacob jacob at internet24.de
Mon Jul 3 04:52:43 EDT 2006

On Sat, 2006-07-01 at 18:06 +0200, Michele Petrazzo wrote:
> I have this code:
> creator = ClientCreator(reactor, FTPClient, self._user, self._passwd,
>                           self._passive, fail=self._Fail)
> cre = creator.connectTCP(self._host, self._port)
> cre.addCallback(self._ConnectionMade)
> cre.addErrback(self._Fail)
> I see that I can add a deferred on an connection error, that receive
> also the commands error ("wrong user", etc..), but is there a solution
> for add a callback for "user logged in" (code 230)?

As far as I can see, _ConnectionMade is fired only when 
the login was successful (Code 230), no? Isn't that
all you need?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20060703/129779e1/attachment.pgp 

More information about the Twisted-Python mailing list