1.1 --- a/examples/ModPython/LoginApp/LoginHandler.py Sun Jan 15 23:22:13 2006 +0000
1.2 +++ b/examples/ModPython/LoginApp/LoginHandler.py Sun Jan 15 23:23:29 2006 +0000
1.3 @@ -5,7 +5,7 @@
1.4 import sys, os
1.5 sys.path.append(os.path.abspath(os.path.join(__file__, "../../../Common")))
1.6
1.7 -from WebStack.Adapters import ModPython
1.8 +from WebStack.Adapters.ModPython import deploy
1.9 from WebStack.Resources.Login import LoginResource, LoginAuthenticator
1.10
1.11 # NOTE: Not sure if the resource should be maintained in a resource pool.
1.12 @@ -21,7 +21,6 @@
1.13 use_redirect=0
1.14 )
1.15
1.16 -def handler(req):
1.17 - return ModPython.respond(req, resource, handle_errors=0)
1.18 +handler, _no_authentication = deploy(resource, handle_errors=0)
1.19
1.20 # vim: tabstop=4 expandtab shiftwidth=4