1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/CGI/VerySimpleWithOpenIDApp.py Sun Feb 03 22:43:55 2008 +0000
1.3 @@ -0,0 +1,26 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +# NOTE: Path manipulation requires manual customisation.
1.7 +
1.8 +import sys
1.9 +sys.path.append("/home/paulb/Software/Python/WebStack")
1.10 +sys.path.append("/home/paulb/Software/Python/XSLTools")
1.11 +sys.path.append("/home/paulb/Software/Python/XSLTools/examples/Common")
1.12 +sys.path.append("/home/paulb/Software/Python/libxml2dom")
1.13 +
1.14 +from WebStack.Adapters.CGI import deploy
1.15 +import VerySimpleWithOpenID
1.16 +
1.17 +# Get a simple Web site.
1.18 +
1.19 +host = "http://localhost" # or an absolute URL (without path)
1.20 +secret_key = "this_must_be_secret"
1.21 +deployed_at = "http://localhost/cgi/vsimple" # must match server configuration
1.22 +
1.23 +resource = VerySimpleWithOpenID.get_site(host, secret_key, deployed_at=deployed_at)
1.24 +
1.25 +# Special magic incantation.
1.26 +
1.27 +deploy(resource, handle_errors=0)
1.28 +
1.29 +# vim: tabstop=4 expandtab shiftwidth=4