2008-06-20 | paulb | raw annotate files changeset graph | [project @ 2008-06-20 23:27:26 by paulb] Improved comment instructions. |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters.BaseHTTPRequestHandler import deploy 4 import VerySimpleWithLogin 5 6 # Get a simple Web site. 7 8 host = "" # or "http://localhost:8080" or another absolute URL (without path) 9 resource = VerySimpleWithLogin.get_site(host) 10 11 # Special magic incantation. 12 13 print "Serving..." 14 deploy(resource, handle_errors=0) 15 16 # vim: tabstop=4 expandtab shiftwidth=4