# HG changeset patch # User paulb # Date 1131996831 0 # Node ID 781a271bf49cd2bc4a6994594ef0e7c346ce0e9e # Parent a84e3b78b606b5ddfe3c2370857aeef9cb823f6f [project @ 2005-11-14 19:33:51 by paulb] Added the job candidate application for CGI. diff -r a84e3b78b606 -r 781a271bf49c examples/CGI/CandidateApp.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/CGI/CandidateApp.py Mon Nov 14 19:33:51 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 Candidate + +# Get a simple Web site. + +resource = Candidate.get_site() + +# Special magic incantation. + +deploy(resource, handle_errors=0) + +# vim: tabstop=4 expandtab shiftwidth=4