XSLTools

examples/BaseHTTPRequestHandler/OpenIDLoginApp.py

687:ae7bdbf61e32
2009-06-22 Paul Boddie Added some error handling to the questionnaire application.
     1 #!/usr/bin/env python     2      3 from WebStack.Adapters.BaseHTTPRequestHandler import deploy     4 import OpenIDLogin     5      6 # Get a simple Web site.     7      8 host = "http://localhost:8081" # Without trailing "/"!     9 resource = OpenIDLogin.get_site(host)    10     11 # Special magic incantation.    12     13 print "Serving..."    14 deploy(resource, handle_errors=0, address=("", 8081)) # NOTE: Change when host changes!    15     16 # vim: tabstop=4 expandtab shiftwidth=4