1 #!/usr/bin/env python 2 3 """ 4 Webware context for the SimpleWithLogin application (post Webware 0.8.1). 5 """ 6 7 from WebStack.Adapters.Webware import deploy 8 from SimpleWithLogin import get_site_map 9 10 # Change this to be the exact URL. 11 # eg. http://localhost:8000/myapp/login 12 13 login_url = "http://localhost:9080/simplewithlogin/login" 14 15 # Change this to be the URL base for your server. 16 # eg. http://localhost:8000 17 18 app_url = "http://localhost:9080" # No trailing "/"! 19 20 # Must match the key used elsewhere. 21 22 secret_key = "horses" 23 24 resource = get_site_map(app_url, login_url, secret_key) 25 26 # NOTE: Initialising a shared resource. 27 28 urlParser = deploy(resource, handle_errors=0) 29 30 # vim: tabstop=4 expandtab shiftwidth=4