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 11 from WebStack.Resources.LoginRedirect import LoginRedirectResource, LoginRedirectAuthenticator 12 from Simple import SimpleResource 13 14 deploy( 15 LoginRedirectResource( 16 login_url="http://localhost/wsgi/login", 17 app_url="http://localhost", 18 resource=SimpleResource(), 19 authenticator=LoginRedirectAuthenticator(secret_key="horses"), 20 anonymous_parameter_name="anonymous", 21 logout_parameter_name="logout" 22 ) 23 ) 24 25 # vim: tabstop=4 expandtab shiftwidth=4