# HG changeset patch # User paulb # Date 1076276577 0 # Node ID a872e47ad6b3f38c17672685a611546093267ebf # Parent f977346746797152dcf5b4c3a72c0dc174448d71 [project @ 2004-02-08 21:42:57 by paulb] Added the authentication/authorisation example for BaseHTTPRequestHandler. diff -r f97734674679 -r a872e47ad6b3 examples/BaseHTTPRequestHandler/AuthApp.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/BaseHTTPRequestHandler/AuthApp.py Sun Feb 08 21:42:57 2004 +0000 @@ -0,0 +1,14 @@ +#!/usr/bin/env python + +from WebStack.Adapters import BaseHTTPRequestHandler +from Auth import AuthResource +import BaseHTTPServer + +# Special magic incantation. + +handler = BaseHTTPRequestHandler.HandlerFactory(AuthResource()) +address = ("", 8080) +server = BaseHTTPServer.HTTPServer(address, handler) +server.serve_forever() + +# vim: tabstop=4 expandtab shiftwidth=4