# HG changeset patch # User paulb # Date 1121538353 0 # Node ID 110e812926b32b08b385b87037eac6063fdeec4f # Parent 23210d96c3b690da0a56dcce83a80ef28b94766c [project @ 2005-07-16 18:25:53 by paulb] Moved site map initialisation into the applications. Added CGI examples. diff -r 23210d96c3b6 -r 110e812926b3 examples/CGI/PEP241App.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/CGI/PEP241App.py Sat Jul 16 18:25:53 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 PEP241 + +# Get a simple Web site. + +resource = PEP241.get_site() + +# Special magic incantation. + +deploy(resource, handle_errors=0) + +# vim: tabstop=4 expandtab shiftwidth=4 diff -r 23210d96c3b6 -r 110e812926b3 examples/CGI/QuestionnaireApp.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/CGI/QuestionnaireApp.py Sat Jul 16 18:25:53 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 Questionnaire + +# Get a simple Web site. + +resource = Questionnaire.get_site() + +# Special magic incantation. + +deploy(resource, handle_errors=0) + +# vim: tabstop=4 expandtab shiftwidth=4