# HG changeset patch # User paulb # Date 1078013185 0 # Node ID 3df66055acfb1cd3ee78f4a84366bdb595443671 # Parent 963a1e046eb8015e57333a929ac81fa5150f6346 [project @ 2004-02-29 00:06:25 by paulb] Added authenticator usage. diff -r 963a1e046eb8 -r 3df66055acfb examples/BaseHTTPRequestHandler/AuthApp.py --- a/examples/BaseHTTPRequestHandler/AuthApp.py Sun Feb 29 00:06:14 2004 +0000 +++ b/examples/BaseHTTPRequestHandler/AuthApp.py Sun Feb 29 00:06:25 2004 +0000 @@ -1,12 +1,12 @@ #!/usr/bin/env python from WebStack.Adapters import BaseHTTPRequestHandler -from Auth import AuthResource +from Auth import AuthResource, AuthAuthenticator import BaseHTTPServer # Special magic incantation. -handler = BaseHTTPRequestHandler.HandlerFactory(AuthResource()) +handler = BaseHTTPRequestHandler.HandlerFactory(AuthResource(), AuthAuthenticator()) address = ("", 8080) server = BaseHTTPServer.HTTPServer(address, handler) server.serve_forever()