1 #!/usr/bin/env python 2 3 # NOTE: Path manipulation may require manual customisation. 4 5 import sys, os 6 sys.path.append(os.path.abspath(os.path.join(__file__, "../../../Common"))) 7 8 from WebStack.Adapters.ModPython import deploy 9 from SimpleWithLogin import get_site_map 10 11 # Change this to be the exact URL. 12 # eg. http://localhost:8000/myapp/login 13 14 login_url = "http://localhost/login/app" 15 16 # Change this to be the URL base for your server. 17 # eg. http://localhost:8000 18 19 app_url = "http://localhost" # No trailing "/"! 20 21 # Must match the key used elsewhere. 22 23 secret_key = "horses" 24 25 resource = get_site_map(app_url, login_url, secret_key) 26 27 # NOTE: Not sure if the resource should be maintained in a resource pool. 28 29 handler, _no_authentication = deploy(resource, handle_errors=0) 30 31 # vim: tabstop=4 expandtab shiftwidth=4