Re: help on handle... methods

wwwjfy <[email protected]>
Newsgroups gmane.comp.python.twisted.web
Message-ID <[email protected]>
On Tue, Feb 9, 2010 at 19:38, Catonano <[email protected]> wrote:

> Hello people,
>
> I'm taking a look at the HTTPPageDownloader implementation and there's a
> thing I don't understand.
>
> There these three methods:
>
>
>    1. handleStatus_200
>    2. handleResponsePart
>    3. handleResponseEnd
>
> How does the reactor know it has to call these methods ?
>
> What if I want to add or remove or modify a method ? Will the reactor call
> them correctly anyway ? How comes ?
>
> Thanks for any hint
> Catonano
>
>
> --
> La difesa più sicura contro il male è l'estremo individualismo,
> l'originalità di pensiero, la stravaganza, perfino, se volete,
> l'eccentricità… Il male va matto per la solidarietà.
>
> Less than one di Joseph Brodsky
>
> _______________________________________________
> Twisted-web mailing list
> [email protected]
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>
> Hi,
   1. You can find it in handleEndHeaders, which decides to call method
'handleStatus_' + status if the method exists.
   2.3. These two method are called in method rawDataReceived in class
HTTPClient, which is HTTPPageDownloader's parent.

   I think you can grep all source files of twisted to find most answers if
you don't know where is one method called. :)

---
wwwjfy

_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.