# HG changeset patch # User paulb # Date 1121903074 0 # Node ID 45a4a1092b41b07f1e6e120758e198bd343f51c4 # Parent 61dca0d38e5c806b8d7d4a583fe8155da57b126a [project @ 2005-07-20 23:44:34 by paulb] Added CGI handler for the documentation example. diff -r 61dca0d38e5c -r 45a4a1092b41 examples/CGI/VerySimpleApp.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/CGI/VerySimpleApp.py Wed Jul 20 23:44:34 2005 +0000 @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +# NOTE: Path manipulation requires manual customisation. + +import sys +sys.path.append("/home/paulb/Software/Python/WebStack") +sys.path.append("/home/paulb/Software/Python/XSLTools") +sys.path.append("/home/paulb/Software/Python/XSLTools/examples/Common") +sys.path.append("/home/paulb/Software/Python/libxml2dom") + +from WebStack.Adapters.CGI import deploy +import VerySimple + +# Get a simple Web site. + +resource = VerySimple.get_site() + +# Special magic incantation. + +deploy(resource, handle_errors=0) + +# vim: tabstop=4 expandtab shiftwidth=4