1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/WSGI/LoginApp.py Thu Sep 27 22:48:48 2007 +0000
1.3 @@ -0,0 +1,25 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +# Uncomment and adjust the paths below if WebStack is not installed somewhere
1.7 +# on the PYTHONPATH.
1.8 +
1.9 +#import sys
1.10 +#sys.path.append("/home/paulb/Software/Python/WebStack")
1.11 +#sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
1.12 +
1.13 +from WebStack.Adapters.WSGI import deploy
1.14 +from WebStack.Resources.Login import LoginResource, LoginAuthenticator
1.15 +
1.16 +deploy(
1.17 + LoginResource(
1.18 + LoginAuthenticator(
1.19 + secret_key="horses",
1.20 + credentials=(
1.21 + ("badger", "abc"),
1.22 + ("vole", "xyz"),
1.23 + )
1.24 + )
1.25 + )
1.26 +)
1.27 +
1.28 +# vim: tabstop=4 expandtab shiftwidth=4