SimpleHTTPServer question.

Adonis deltapigz at telocity.com
Sat Dec 7 19:58:02 EST 2002


when subclassing SimpleHTTPServer.SimpleHTTPRequestHandler, is it possible
when overriding the do_GET function to allow the function to run as if it
was never overridden?

i.e.

class RequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
    def do_GET(self):
        if self.path == '/something':
            ..do something..
        else:
            run normally SimpleHTTPServer.SimpleHTTPRequestHandler

any help is appreciated.

Adonis





More information about the Python-list mailing list