durusmail: quixote-users: Request subclassing
Request subclassing
2005-11-09
2005-11-09
2005-11-10
2005-11-10
2005-11-10
2005-11-10
Matt Patterson (3 parts)
2005-11-11
Matt Patterson (2 parts)
2005-11-11
2005-11-11
Request subclassing
Matt Patterson
2005-11-10
On 10 Nov 2005, at 11:43, David Binger wrote:

> If the Publisher is be the authority request instance construction,
> maybe
> it also be the caller of the request constructor.
>
>     def process(self, stdin, env):
>         request = HTTPRequest(stdin, env)
>         return self.process_request(request)
>
> Wouldn't this simplify the responsibilities of the driver scripts?
> (And you could override process to get your customized requests.)

Here's a patch implementing that, with changes to the bundled driver
scripts.

Matt

--
   Matt Patterson | Design & Code
    | http://www.emdash.co.uk/
    | http://www.reprocessed.org/

reply