# HG changeset patch # User paulb # Date 1202078635 0 # Node ID 35f0ebceec4112e3a3802b6a951949985db807e9 # Parent b836d63f0caf71b8a19937e3faa2b2dc53456e15 [project @ 2008-02-03 22:43:55 by paulb] Added CGI version of the combined OpenID example. diff -r b836d63f0caf -r 35f0ebceec41 examples/CGI/VerySimpleWithOpenIDApp.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/CGI/VerySimpleWithOpenIDApp.py Sun Feb 03 22:43:55 2008 +0000 @@ -0,0 +1,26 @@ +#!/usr/bin/env python + +# NOTE: Path manipulation requires manual customisation. + +import sys +sys.path.append("/home/paulb/Software/Python/WebStack") +sys.path.append("/home/paulb/Software/Python/XSLTools") +sys.path.append("/home/paulb/Software/Python/XSLTools/examples/Common") +sys.path.append("/home/paulb/Software/Python/libxml2dom") + +from WebStack.Adapters.CGI import deploy +import VerySimpleWithOpenID + +# Get a simple Web site. + +host = "http://localhost" # or an absolute URL (without path) +secret_key = "this_must_be_secret" +deployed_at = "http://localhost/cgi/vsimple" # must match server configuration + +resource = VerySimpleWithOpenID.get_site(host, secret_key, deployed_at=deployed_at) + +# Special magic incantation. + +deploy(resource, handle_errors=0) + +# vim: tabstop=4 expandtab shiftwidth=4