XSLTools

Annotated examples/BaseHTTPRequestHandler/ConfiguratorApp.py

569:809b377cff44
2007-04-12 paulb [project @ 2007-04-12 18:41:16 by paulb] Updated release information.
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