1 #!/usr/bin/env python 2 3 # NOTE: Path manipulation requires manual customisation. 4 5 import sys 6 sys.path.append("/home/paulb/Software/Python/WebStack") 7 sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common") 8 9 from WebStack.Adapters.WSGI import deploy 10 from WebStack.Resources.LoginRedirect import LoginRedirectResource, LoginRedirectAuthenticator 11 from Simple import SimpleResource 12 13 deploy( 14 LoginRedirectResource( 15 login_url="http://localhost/wsgi/login", 16 app_url="http://localhost", 17 resource=SimpleResource(), 18 authenticator=LoginRedirectAuthenticator(secret_key="horses"), 19 anonymous_parameter_name="anonymous", 20 logout_parameter_name="logout" 21 ) 22 ) 23 24 # vim: tabstop=4 expandtab shiftwidth=4