Re: Design philosophy of HTTPServer and BaseHTTPRequestHandler

2007-08-22 Thread Gabriel Genellina
En Wed, 22 Aug 2007 17:27:01 -0300, tzuchien.chiu <[EMAIL PROTECTED]> escribi�: > On 22 ago, 14:45, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >> The server is permanent; request handler instances are created and >> destroyed as HTTP requests arrive and are processed. >> You should store any p

Re: Design philosophy of HTTPServer and BaseHTTPRequestHandler

2007-08-22 Thread tzuchien.chiu
On 22 ago, 14:45, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > The server is permanent; request handler instances are created and > destroyed as HTTP requests arrive and are processed. > You should store any permanent info in the server; your > "BaseHTTPRequestHandler-derived class" can reference

Re: Design philosophy of HTTPServer and BaseHTTPRequestHandler

2007-08-22 Thread Gabriel Genellina
t) dynamically create a "BaseHTTPRequestHandler- > derived "class" for each instance of the script, right? > > Do I misunderstand the design philosophy of HTTPServer and > BaseHTTPRequestHandler, and they should not be used in this way? The server is permanent; requ

Design philosophy of HTTPServer and BaseHTTPRequestHandler

2007-08-22 Thread tzuchien chiu gmail com
constructor of HTTPServer expects a BaseHTTPRequestHandler-derived "class", instead of an "object". I cannot (or should not) dynamically create a "BaseHTTPRequestHandler- derived "class" for each instance of the script, right? Do I misunderstand the design philosophy of HT