1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/CGI/OpenIDLoginHandler.py Thu May 01 21:46:24 2008 +0000
1.3 @@ -0,0 +1,19 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +# Uncomment and adjust the paths below if WebStack is not installed somewhere
1.7 +# on the PYTHONPATH.
1.8 +
1.9 +#import sys
1.10 +#sys.path.append("/home/paulb/Software/Python/WebStack")
1.11 +#sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
1.12 +
1.13 +from WebStack.Adapters.CGI import deploy
1.14 +from OpenIDLogin import get_site_map
1.15 +
1.16 +app_url = "http://localhost" # No trailing "/"!
1.17 +deployment_url = "http://localhost/cgi/openidlogin" # No trailing "/"!
1.18 +resource = get_site_map(app_url, deployment_url)
1.19 +
1.20 +deploy(resource, handle_errors=0)
1.21 +
1.22 +# vim: tabstop=4 expandtab shiftwidth=4