1.1 --- a/examples/WSGI/LoginHandler.py Thu Mar 24 17:41:03 2005 +0000
1.2 +++ b/examples/WSGI/LoginHandler.py Thu Mar 24 17:41:17 2005 +0000
1.3 @@ -6,23 +6,19 @@
1.4 sys.path.append("/home/paulb/Software/Python/WebStack")
1.5 sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
1.6
1.7 -from WebStack.Adapters import WSGI
1.8 +from WebStack.Adapters.WSGI import deploy
1.9 from WebStack.Resources.Login import LoginResource, LoginAuthenticator
1.10 -from wsgi_cgi import run_with_cgi
1.11
1.12 -resource = LoginResource(
1.13 - LoginAuthenticator(
1.14 - secret_key="horses",
1.15 - credentials=(
1.16 - ("badger", "abc"),
1.17 - ("vole", "xyz"),
1.18 +deploy(
1.19 + LoginResource(
1.20 + LoginAuthenticator(
1.21 + secret_key="horses",
1.22 + credentials=(
1.23 + ("badger", "abc"),
1.24 + ("vole", "xyz"),
1.25 + )
1.26 )
1.27 )
1.28 )
1.29
1.30 -# Special magic incantation.
1.31 -
1.32 -handler = WSGI.WSGIAdapter(resource)
1.33 -run_with_cgi(handler)
1.34 -
1.35 # vim: tabstop=4 expandtab shiftwidth=4