1 #!/usr/bin/env python 2 3 # Uncomment and adjust the paths below if WebStack is not installed somewhere 4 # on the PYTHONPATH. 5 6 #import sys 7 #sys.path.append("/home/paulb/Software/Python/WebStack") 8 #sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common") 9 10 from WebStack.Adapters.WSGI import deploy_as_cgi 11 from WebStack.Resources.Login import LoginResource, LoginAuthenticator 12 13 deploy_as_cgi( 14 LoginResource( 15 LoginAuthenticator( 16 secret_key="horses", 17 credentials=( 18 ("badger", "abc"), 19 ("vole", "xyz"), 20 ) 21 ) 22 ), 23 handle_errors=0 24 ) 25 26 # vim: tabstop=4 expandtab shiftwidth=4