1.1 --- a/examples/BaseHTTPRequestHandler/SimpleWithLogin.py Sat May 29 17:25:44 2004 +0000
1.2 +++ b/examples/BaseHTTPRequestHandler/SimpleWithLogin.py Sat May 29 17:27:16 2004 +0000
1.3 @@ -9,14 +9,16 @@
1.4
1.5 handler = BaseHTTPRequestHandler.HandlerFactory(
1.6 LoginRedirectResource(
1.7 - "http://localhost:8081",
1.8 - "http://localhost:8080",
1.9 - SimpleResource(),
1.10 - LoginRedirectAuthenticator("horses")
1.11 + login_url="http://localhost:8081",
1.12 + app_url="http://localhost:8080",
1.13 + resource=SimpleResource(),
1.14 + authenticator=LoginRedirectAuthenticator(secret_key="horses"),
1.15 + anonymous_parameter_name="anonymous"
1.16 )
1.17 )
1.18 address = ("", 8080)
1.19 server = BaseHTTPServer.HTTPServer(address, handler)
1.20 +print "Serving..."
1.21 server.serve_forever()
1.22
1.23 # vim: tabstop=4 expandtab shiftwidth=4