paulb@251 | 1 | #!/usr/bin/env python |
paulb@251 | 2 | |
paulb@251 | 3 | from WebStack.Adapters.BaseHTTPRequestHandler import deploy |
paulb@251 | 4 | import Candidate |
paulb@251 | 5 | |
paulb@251 | 6 | # Get a simple Web site. |
paulb@497 | 7 | # NOTE: Change the filesystem encoding if appropriate. |
paulb@511 | 8 | # Use the current working directory so that the installed package can still run |
paulb@511 | 9 | # the demo. |
paulb@251 | 10 | |
paulb@511 | 11 | resource = Candidate.get_site("iso-8859-15", use_cwd=1) |
paulb@251 | 12 | |
paulb@251 | 13 | # Special magic incantation. |
paulb@251 | 14 | |
paulb@251 | 15 | print "Serving..." |
paulb@251 | 16 | deploy(resource, handle_errors=0) |
paulb@251 | 17 | |
paulb@251 | 18 | # vim: tabstop=4 expandtab shiftwidth=4 |