2006-03-04 | paulb | raw annotate files changeset graph | [project @ 2006-03-04 18:51:54 by paulb] Made use of the current working directory so that installed versions of the demo still work. |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters.BaseHTTPRequestHandler import deploy 4 import Candidate 5 6 # Get a simple Web site. 7 # NOTE: Change the filesystem encoding if appropriate. 8 # Use the current working directory so that the installed package can still run 9 # the demo. 10 11 resource = Candidate.get_site("iso-8859-15", use_cwd=1) 12 13 # Special magic incantation. 14 15 print "Serving..." 16 deploy(resource, handle_errors=0) 17 18 # vim: tabstop=4 expandtab shiftwidth=4