1.1 --- a/examples/ModPython/CalendarApp/CalendarHandler.py Sun Jan 15 23:22:13 2006 +0000
1.2 +++ b/examples/ModPython/CalendarApp/CalendarHandler.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 Calendar import CalendarResource
1.10
1.11 # NOTE: Not sure if the resource should be maintained in a resource pool.
1.12 @@ -14,7 +14,6 @@
1.13 resource = CalendarResource()
1.14 #resource = CalendarResource("iso-8859-1")
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