1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/CGI/PEP241App.py Sat Jul 16 18:25:53 2005 +0000
1.3 @@ -0,0 +1,22 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +# NOTE: Path manipulation requires manual customisation.
1.7 +
1.8 +import sys
1.9 +sys.path.append("/home/paulb/Software/Python/WebStack")
1.10 +sys.path.append("/home/paulb/Software/Python/XSLTools")
1.11 +sys.path.append("/home/paulb/Software/Python/XSLTools/examples/Common")
1.12 +sys.path.append("/home/paulb/Software/Python/libxml2dom")
1.13 +
1.14 +from WebStack.Adapters.CGI import deploy
1.15 +import PEP241
1.16 +
1.17 +# Get a simple Web site.
1.18 +
1.19 +resource = PEP241.get_site()
1.20 +
1.21 +# Special magic incantation.
1.22 +
1.23 +deploy(resource, handle_errors=0)
1.24 +
1.25 +# vim: tabstop=4 expandtab shiftwidth=4
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/examples/CGI/QuestionnaireApp.py Sat Jul 16 18:25:53 2005 +0000
2.3 @@ -0,0 +1,22 @@
2.4 +#!/usr/bin/env python
2.5 +
2.6 +# NOTE: Path manipulation requires manual customisation.
2.7 +
2.8 +import sys
2.9 +sys.path.append("/home/paulb/Software/Python/WebStack")
2.10 +sys.path.append("/home/paulb/Software/Python/XSLTools")
2.11 +sys.path.append("/home/paulb/Software/Python/XSLTools/examples/Common")
2.12 +sys.path.append("/home/paulb/Software/Python/libxml2dom")
2.13 +
2.14 +from WebStack.Adapters.CGI import deploy
2.15 +import Questionnaire
2.16 +
2.17 +# Get a simple Web site.
2.18 +
2.19 +resource = Questionnaire.get_site()
2.20 +
2.21 +# Special magic incantation.
2.22 +
2.23 +deploy(resource, handle_errors=0)
2.24 +
2.25 +# vim: tabstop=4 expandtab shiftwidth=4