2005-07-16 | paulb | file changeset files shortlog | [project @ 2005-07-16 17:56:46 by paulb] Moved site map initialisation into the application itself. |
paulb@30 | 1 | #!/usr/bin/env python |
paulb@30 | 2 | |
paulb@37 | 3 | from WebStack.Adapters.BaseHTTPRequestHandler import deploy |
paulb@37 | 4 | import Configurator |
paulb@37 | 5 | |
paulb@99 | 6 | # Get a simple Web site. |
paulb@99 | 7 | |
paulb@99 | 8 | resource = Configurator.get_site() |
paulb@30 | 9 | |
paulb@30 | 10 | # Special magic incantation. |
paulb@30 | 11 | |
paulb@30 | 12 | print "Serving..." |
paulb@37 | 13 | deploy(resource, handle_errors=0) |
paulb@30 | 14 | |
paulb@30 | 15 | # vim: tabstop=4 expandtab shiftwidth=4 |