XSLTools

Annotated examples/BaseHTTPRequestHandler/VerySimpleApp.py

569:809b377cff44
2007-04-12 paulb [project @ 2007-04-12 18:41:16 by paulb] Updated release information.
paulb@152 1
#!/usr/bin/env python
paulb@152 2
paulb@152 3
from WebStack.Adapters.BaseHTTPRequestHandler import deploy
paulb@152 4
import VerySimple
paulb@152 5
paulb@152 6
# Get a simple Web site.
paulb@152 7
paulb@152 8
resource = VerySimple.get_site()
paulb@152 9
paulb@152 10
# Special magic incantation.
paulb@152 11
paulb@152 12
print "Serving..."
paulb@152 13
deploy(resource, handle_errors=0)
paulb@152 14
paulb@152 15
# vim: tabstop=4 expandtab shiftwidth=4