1.1 --- a/examples/ModPython/AuthApp/AuthHandler.py Sun Jan 15 23:22:13 2006 +0000
1.2 +++ b/examples/ModPython/AuthApp/AuthHandler.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 Auth import AuthResource, AuthAuthenticator
1.10
1.11 # NOTE: Not sure if the resource should be maintained in a resource pool.
1.12 @@ -13,10 +13,6 @@
1.13 resource = AuthResource()
1.14 authenticator = AuthAuthenticator()
1.15
1.16 -def handler(req):
1.17 - return ModPython.respond(req, resource, handle_errors=0)
1.18 -
1.19 -def authenhandler(req):
1.20 - return ModPython.authenticate(req, authenticator, handle_errors=0)
1.21 +handler, authenhandler = deploy(resource, authenticator, handle_errors=0)
1.22
1.23 # vim: tabstop=4 expandtab shiftwidth=4