1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/BaseHTTPRequestHandler/VerySimpleWithOpenIDApp.py Sun Feb 03 20:05:15 2008 +0000
1.3 @@ -0,0 +1,18 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +from WebStack.Adapters.BaseHTTPRequestHandler import deploy
1.7 +import VerySimpleWithOpenID
1.8 +
1.9 +# Get a simple Web site.
1.10 +
1.11 +host = "http://localhost:8080" # or an absolute URL (without path)
1.12 +secret_key = "this_must_be_secret"
1.13 +
1.14 +resource = VerySimpleWithOpenID.get_site(host, secret_key)
1.15 +
1.16 +# Special magic incantation.
1.17 +
1.18 +print "Serving..."
1.19 +deploy(resource, handle_errors=0)
1.20 +
1.21 +# vim: tabstop=4 expandtab shiftwidth=4